Browse Source

Removed an unused and leaked CheckButton instance in theme editor plugin

(cherry picked from commit cbf2d3cdc4878ee90b2153e56e583bbc06ceb803)
Ibrahn Sahir 6 years ago
parent
commit
78a7f945e4
1 changed files with 0 additions and 1 deletions
  1. 0 1
      editor/plugins/theme_editor_plugin.cpp

+ 0 - 1
editor/plugins/theme_editor_plugin.cpp

@@ -683,7 +683,6 @@ ThemeEditor::ThemeEditor() {
 	CheckButton *cb = memnew(CheckButton);
 	CheckButton *cb = memnew(CheckButton);
 	cb->set_text("CheckButton");
 	cb->set_text("CheckButton");
 	first_vb->add_child(cb);
 	first_vb->add_child(cb);
-	cb = memnew(CheckButton);
 	CheckBox *cbx = memnew(CheckBox);
 	CheckBox *cbx = memnew(CheckBox);
 	cbx->set_text("CheckBox");
 	cbx->set_text("CheckBox");
 	first_vb->add_child(cbx);
 	first_vb->add_child(cbx);