aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-05-11 00:12:14 +0200
committerPilzAdam <pilzadam@minetest.net>2013-05-11 00:12:14 +0200
commit5068cb40ce437257b01234641779567531f132b1 (patch)
treeadc385d476e427d253c7dffb2f0589c879914cde
parente5781b5e34a7f867c8dc7ebc1cbb6e81efaa9b86 (diff)
downloadminetest-5068cb40ce437257b01234641779567531f132b1.tar.gz
minetest-5068cb40ce437257b01234641779567531f132b1.tar.bz2
minetest-5068cb40ce437257b01234641779567531f132b1.zip
Fix memory leak: remove InventoryAction after sending and applying
-rw-r--r--src/client.cpp3
1 files changed, 3 insertions, 0 deletions
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(