Fix memory leak: remove InventoryAction after sending and applying

This commit is contained in:
PilzAdam 2013-05-11 00:12:14 +02:00
parent e5781b5e34
commit 5068cb40ce
1 changed files with 3 additions and 0 deletions

View File

@ -2555,6 +2555,9 @@ void Client::inventoryAction(InventoryAction *a)
Predict some local inventory changes Predict some local inventory changes
*/ */
a->clientApply(this, this); a->clientApply(this, this);
// Remove it
delete a;
} }
ClientActiveObject * Client::getSelectedActiveObject( ClientActiveObject * Client::getSelectedActiveObject(