diff options
author | Błażej Szczygieł <spaz16@wp.pl> | 2016-06-09 19:09:59 +0200 |
---|---|---|
committer | Błażej Szczygieł <spaz16@wp.pl> | 2016-06-09 19:10:06 +0200 |
commit | 73b93c9110ec853e12bcde1a26305bd96ed801d4 (patch) | |
tree | f1ad892cae3fc1ea86e5bea9f2b9732899373b3e /tools/editor | |
parent | f8f30662d93a46eb4b1ece6d45be28760d5ad58c (diff) |
EditorAssetLibrary: Don't call add_child() on uninitialized pointer
Fixes possible crash and fixes crash when using undefined sanitizer.
The "search_hb" is already added into "library_main" container.
Diffstat (limited to 'tools/editor')
-rw-r--r-- | tools/editor/asset_library_editor_plugin.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/editor/asset_library_editor_plugin.cpp b/tools/editor/asset_library_editor_plugin.cpp index 0b16ca9545..928acdbcbb 100644 --- a/tools/editor/asset_library_editor_plugin.cpp +++ b/tools/editor/asset_library_editor_plugin.cpp @@ -1282,8 +1282,6 @@ EditorAssetLibrary::EditorAssetLibrary(bool p_templates_only) { } - library_vb->add_child(search_hb); - HBoxContainer *search_hb2 = memnew( HBoxContainer ); library_main->add_child(search_hb2); |