Skip to content

Commit 5068cb4

Browse files
committedMay 10, 2013
Fix memory leak: remove InventoryAction after sending and applying
1 parent e5781b5 commit 5068cb4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/client.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -2555,6 +2555,9 @@ void Client::inventoryAction(InventoryAction *a)
25552555
Predict some local inventory changes
25562556
*/
25572557
a->clientApply(this, this);
2558+
2559+
// Remove it
2560+
delete a;
25582561
}
25592562

25602563
ClientActiveObject * Client::getSelectedActiveObject(

0 commit comments

Comments
 (0)
Please sign in to comment.