Merge pull request #6991 from volzhs/fix-memleak

Fix memory leak with drag & drop on 2D viewport
This commit is contained in:
Rémi Verschelde 2016-10-31 07:45:06 +01:00 committed by GitHub
commit de454318e7

View file

@ -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;
}
}