Properly clean `button_add_item` ref in Dict property editor
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
parent
5d9c7eaef9
commit
d54b60233a
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue