Skip to content
Snippets Groups Projects
Commit 5068cb40 authored by PilzAdam's avatar PilzAdam
Browse files

Fix memory leak: remove InventoryAction after sending and applying

parent e5781b5e
Branches
Tags
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment