From: PilzAdam Date: Fri, 10 May 2013 22:12:14 +0000 (+0200) Subject: Fix memory leak: remove InventoryAction after sending and applying X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=5068cb40ce437257b01234641779567531f132b1;p=zefram%2Fminetest%2Fminetest_engine.git Fix memory leak: remove InventoryAction after sending and applying --- diff --git a/src/client.cpp b/src/client.cpp index 56505c66..329496db 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(