App: Fix possible crash when postponing the destruction of a removed property

Fixes #18601
This commit is contained in:
wmayer
2024-12-20 22:18:10 +01:00
committed by Chris Hennes
parent 49ce1e0449
commit 02f41bbe60
2 changed files with 20 additions and 0 deletions

View File

@@ -213,6 +213,7 @@ struct PropertyCleaner
auto p = _RemovedProps.back();
_RemovedProps.pop_back();
if (p != prop) {
p->setContainer(nullptr);
delete p;
}
else {