Fix memory leak with drag & drop on 2D viewport
This commit is contained in:
parent
1fde6f25cd
commit
a7d492eb53
1 changed files with 1 additions and 0 deletions
|
@ -3797,6 +3797,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…
Reference in a new issue