mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix memory leak with drag & drop on 2D viewport
(cherry picked from commit a7d492eb53)
This commit is contained in:
parent
5033fc92f4
commit
91af714d39
1 changed files with 1 additions and 0 deletions
|
|
@ -3746,6 +3746,7 @@ bool CanvasItemEditorViewport::_create_instance(Node* parent, String& path, cons
|
|||
|
||||
if (editor->get_edited_scene()->get_filename()!="") { // cyclical instancing
|
||||
if (_cyclical_dependency_exists(editor->get_edited_scene()->get_filename(), instanced_scene)) {
|
||||
memdelete(instanced_scene);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue