mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Fix heap-use-after-free
error in TileMap::~TileMap()
Co-authored-by: Gilles Roudiere <gilles.roudiere@gmail.com>
This commit is contained in:
parent
05097ded0a
commit
e7fb2f0294
@ -4072,5 +4072,9 @@ TileMap::TileMap() {
|
||||
}
|
||||
|
||||
TileMap::~TileMap() {
|
||||
if (tile_set.is_valid()) {
|
||||
tile_set->disconnect("changed", callable_mp(this, &TileMap::_tile_set_changed));
|
||||
}
|
||||
|
||||
_clear_internals();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user