diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-09-24 19:05:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-24 19:05:28 +0200 |
commit | 26b39f1eae1f576669cbf49c6db94ef4ed8624df (patch) | |
tree | dd0a508d4d6987f2c667cbf342955f64ebbd02af /src/server.h | |
parent | d77ea764768f5cde9e8f0781356a67d723aa7609 (diff) | |
download | minetest-26b39f1eae1f576669cbf49c6db94ef4ed8624df.tar.gz minetest-26b39f1eae1f576669cbf49c6db94ef4ed8624df.tar.bz2 minetest-26b39f1eae1f576669cbf49c6db94ef4ed8624df.zip |
Fix some reference counters (memleak) (#8981)
Fix some reference counters (memleak)
Map::dispatchEvent: Allocation safety using references
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 2 |
1 files changed, 1 insertions, 1 deletions
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. |