mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix memory leak: remove InventoryAction after sending and applying
This commit is contained in:
parent
e5781b5e34
commit
5068cb40ce
1 changed files with 3 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue