diff options
author | volzhs <volzhs@gmail.com> | 2016-10-31 11:50:34 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2016-10-31 11:50:34 +0900 |
commit | a7d492eb53489083181682839c6d7f83a888ad46 (patch) | |
tree | 3440c85d862b07fd13d96148ed9c2cfcbb4e1057 /tools | |
parent | 1fde6f25cd34a5264d7a4114b546389fafc21b27 (diff) |
Fix memory leak with drag & drop on 2D viewport
Diffstat (limited to 'tools')
-rw-r--r-- | tools/editor/plugins/canvas_item_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/editor/plugins/canvas_item_editor_plugin.cpp b/tools/editor/plugins/canvas_item_editor_plugin.cpp index ac39e0687c..af9fd69ae7 100644 --- a/tools/editor/plugins/canvas_item_editor_plugin.cpp +++ b/tools/editor/plugins/canvas_item_editor_plugin.cpp @@ -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; } } |