1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 17:15:21 +02:00

Fix some reference counters (memleak) (#8981)

Fix some reference counters (memleak)
Map::dispatchEvent: Allocation safety using references
This commit is contained in:
SmallJoker
2019-09-24 19:05:28 +02:00
committed by GitHub
parent d77ea76476
commit 26b39f1eae
12 changed files with 30 additions and 37 deletions

View File

@@ -126,7 +126,7 @@ int LuaVoxelManip::l_write_to_map(lua_State *L)
for (const auto &modified_block : o->modified_blocks)
event.modified_blocks.insert(modified_block.first);
map->dispatchEvent(&event);
map->dispatchEvent(event);
o->modified_blocks.clear();
return 0;