Skip to content

Commit

Permalink
Fix memory leak: remove InventoryAction after sending and applying
Browse files Browse the repository at this point in the history
  • Loading branch information
PilzAdam committed May 10, 2013
1 parent e5781b5 commit 5068cb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client.cpp
Expand Up @@ -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(
Expand Down

0 comments on commit 5068cb4

Please sign in to comment.