mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Fix some reference counters (memleak) (#8981)
Fix some reference counters (memleak) Map::dispatchEvent: Allocation safety using references
This commit is contained in:
@@ -189,7 +189,7 @@ public:
|
||||
This is accessed by the map, which is inside the environment,
|
||||
so it shouldn't be a problem.
|
||||
*/
|
||||
void onMapEditEvent(MapEditEvent *event);
|
||||
void onMapEditEvent(const MapEditEvent &event);
|
||||
|
||||
/*
|
||||
Shall be called with the environment and the connection locked.
|
||||
|
Reference in New Issue
Block a user