summaryrefslogtreecommitdiff
path: root/editor/script_create_dialog.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-08-27 02:10:32 +0200
committerGitHub <noreply@github.com>2017-08-27 02:10:32 +0200
commit5976e8d7ded314e56a2bb80406ea7eee9354e80c (patch)
treedcd9fa0d9d1dd6f28533f055fd68078afaca41f7 /editor/script_create_dialog.cpp
parente8345c824e361a3e6ca0e5dca384ad1856127bb7 (diff)
parent1577f4165374fc7c6d7f3031e463f0aab6e96faa (diff)
Merge pull request #10625 from Rubonnek/fixed-leaks
Fixed several memory leaks
Diffstat (limited to 'editor/script_create_dialog.cpp')
-rw-r--r--editor/script_create_dialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp
index 299538a2b3..b70c63c97c 100644
--- a/editor/script_create_dialog.cpp
+++ b/editor/script_create_dialog.cpp
@@ -591,6 +591,9 @@ ScriptCreateDialog::ScriptCreateDialog() {
hb->add_child(vb);
hb->add_child(empty_v->duplicate());
+ memdelete(empty_h);
+ memdelete(empty_v);
+
add_child(hb);
/* Language */