We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03b0329 commit d0e8219Copy full SHA for d0e8219
1 file changed
freesprite/BasePopup.cpp
@@ -87,7 +87,11 @@ void BasePopup::closePopup() {
87
if (callback != NULL) {
88
callback->eventPopupClosed(callback_id, this);
89
}
90
- delete this;
+
91
+ //delete it next frame to avoid any complications
92
+ g_startNewMainThreadOperation([this]() {
93
+ delete this;
94
+ });
95
96
97
XY BasePopup::makeTitleAndDesc(std::string title, std::string desc) {
0 commit comments