From 26b39f1eae1f576669cbf49c6db94ef4ed8624df Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Tue, 24 Sep 2019 19:05:28 +0200 Subject: Fix some reference counters (memleak) (#8981) Fix some reference counters (memleak) Map::dispatchEvent: Allocation safety using references --- src/server.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server.h') diff --git a/src/server.h b/src/server.h index f01733179..d61840871 100644 --- a/src/server.h +++ b/src/server.h @@ -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. -- cgit v1.2.3