Merge pull request #61190 from timothyqiu/editor-properties-array-dict-clean-button_add_item

This commit is contained in:
Rémi Verschelde 2022-05-19 13:48:11 +02:00 committed by GitHub
commit e88fb37e86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -820,6 +820,7 @@ void EditorPropertyDictionary::update_property() {
if (vbox) { if (vbox) {
set_bottom_editor(nullptr); set_bottom_editor(nullptr);
memdelete(vbox); memdelete(vbox);
button_add_item = nullptr;
vbox = nullptr; vbox = nullptr;
} }
return; return;
@ -1119,6 +1120,7 @@ void EditorPropertyDictionary::update_property() {
if (vbox) { if (vbox) {
set_bottom_editor(nullptr); set_bottom_editor(nullptr);
memdelete(vbox); memdelete(vbox);
button_add_item = nullptr;
vbox = nullptr; vbox = nullptr;
} }
} }