From: PilzAdam Date: Fri, 10 May 2013 22:12:14 +0000 (+0200) Subject: Fix memory leak: remove InventoryAction after sending and applying X-Git-Tag: 0.4.7~29^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5068cb40ce437257b01234641779567531f132b1;p=oweals%2Fminetest.git Fix memory leak: remove InventoryAction after sending and applying --- diff --git a/src/client.cpp b/src/client.cpp index 56505c66c..329496db7 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -2555,6 +2555,9 @@ void Client::inventoryAction(InventoryAction *a) Predict some local inventory changes */ a->clientApply(this, this); + + // Remove it + delete a; } ClientActiveObject * Client::getSelectedActiveObject(