Address memory leak
This commit is contained in:
parent
aed8892760
commit
b8259c6ee7
|
@ -597,7 +597,7 @@ TaskTree::TaskTree() {
|
||||||
|
|
||||||
tree->set_drag_forwarding(callable_mp(this, &TaskTree::_get_drag_data_fw), callable_mp(this, &TaskTree::_can_drop_data_fw), callable_mp(this, &TaskTree::_drop_data_fw));
|
tree->set_drag_forwarding(callable_mp(this, &TaskTree::_get_drag_data_fw), callable_mp(this, &TaskTree::_can_drop_data_fw), callable_mp(this, &TaskTree::_drop_data_fw));
|
||||||
|
|
||||||
tree_search = memnew(TreeSearch);
|
tree_search.instantiate();
|
||||||
vbox_container->add_child(tree_search->search_panel);
|
vbox_container->add_child(tree_search->search_panel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ private:
|
||||||
bool editable;
|
bool editable;
|
||||||
bool updating_tree;
|
bool updating_tree;
|
||||||
HashMap<RECT_CACHE_KEY, Rect2> probability_rect_cache;
|
HashMap<RECT_CACHE_KEY, Rect2> probability_rect_cache;
|
||||||
TreeSearch * tree_search;
|
Ref<TreeSearch> tree_search;
|
||||||
|
|
||||||
struct ThemeCache {
|
struct ThemeCache {
|
||||||
Ref<Font> comment_font;
|
Ref<Font> comment_font;
|
||||||
|
|
|
@ -60,7 +60,6 @@ private:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
void _process_shortcut_input(const Ref<InputEvent> &p_event);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TreeSearchMode get_search_mode();
|
TreeSearchMode get_search_mode();
|
||||||
|
|
Loading…
Reference in New Issue