1
0
Fork 0

(svn r13304) -Fix (r13042): possible double free (showed up in r13092)

release/0.7
smatz 2008-05-27 23:40:36 +00:00
parent 8aa797603c
commit e15863fa77
1 changed files with 3 additions and 2 deletions

View File

@ -1093,8 +1093,9 @@ struct QueryStringWindow : public QueryStringBaseWindow
~QueryStringWindow()
{
if (!this->handled && this->parent != NULL) {
this->handled = true;
this->parent->OnQueryTextFinished(NULL);
Window *parent = this->parent;
this->parent = NULL; // so parent doesn't try to delete us again
parent->OnQueryTextFinished(NULL);
}
ClrBit(_no_scroll, SCROLL_EDIT);
}