소스 검색

Fix leak when closing theme editor preview tabs

Yuri Sizov 1 년 전
부모
커밋
5e3229b7ed
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      editor/plugins/theme_editor_plugin.cpp

+ 2 - 0
editor/plugins/theme_editor_plugin.cpp

@@ -3583,6 +3583,8 @@ void ThemeEditor::_remove_preview_tab(int p_tab) {
 		}
 
 		preview_tabs_content->remove_child(preview_tab);
+		preview_tab->queue_free();
+
 		preview_tabs->remove_tab(p_tab);
 		_change_preview_tab(preview_tabs->get_current_tab());
 	}