diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-27 02:10:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-27 02:10:32 +0200 |
commit | 5976e8d7ded314e56a2bb80406ea7eee9354e80c (patch) | |
tree | dcd9fa0d9d1dd6f28533f055fd68078afaca41f7 /editor/plugins | |
parent | e8345c824e361a3e6ca0e5dca384ad1856127bb7 (diff) | |
parent | 1577f4165374fc7c6d7f3031e463f0aab6e96faa (diff) |
Merge pull request #10625 from Rubonnek/fixed-leaks
Fixed several memory leaks
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 4 | ||||
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 0dcabb1776..34c0a0595e 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -4102,3 +4102,7 @@ CanvasItemEditorViewport::CanvasItemEditorViewport(EditorNode *p_node, CanvasIte label_desc->hide(); editor->get_gui_base()->add_child(label_desc); } + +CanvasItemEditorViewport::~CanvasItemEditorViewport() { + memdelete(preview); +} diff --git a/editor/plugins/canvas_item_editor_plugin.h b/editor/plugins/canvas_item_editor_plugin.h index 9b027fda60..0291660d42 100644 --- a/editor/plugins/canvas_item_editor_plugin.h +++ b/editor/plugins/canvas_item_editor_plugin.h @@ -512,6 +512,7 @@ public: virtual void drop_data(const Point2 &p_point, const Variant &p_data); CanvasItemEditorViewport(EditorNode *p_node, CanvasItemEditor *p_canvas); + ~CanvasItemEditorViewport(); }; #endif |