From 5068cb40ce437257b01234641779567531f132b1 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Sat, 11 May 2013 00:12:14 +0200 Subject: [PATCH] Fix memory leak: remove InventoryAction after sending and applying --- src/client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client.cpp b/src/client.cpp index 56505c66..329496db 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( -- 2.30.2