mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Fix memory leak: remove InventoryAction after sending and applying
This commit is contained in:
@@ -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(
|
||||||
|
Reference in New Issue
Block a user