(svn r13304) -Fix (r13042): possible double free (showed up in r13092)
This commit is contained in:
@@ -1093,8 +1093,9 @@ struct QueryStringWindow : public QueryStringBaseWindow
|
|||||||
~QueryStringWindow()
|
~QueryStringWindow()
|
||||||
{
|
{
|
||||||
if (!this->handled && this->parent != NULL) {
|
if (!this->handled && this->parent != NULL) {
|
||||||
this->handled = true;
|
Window *parent = this->parent;
|
||||||
this->parent->OnQueryTextFinished(NULL);
|
this->parent = NULL; // so parent doesn't try to delete us again
|
||||||
|
parent->OnQueryTextFinished(NULL);
|
||||||
}
|
}
|
||||||
ClrBit(_no_scroll, SCROLL_EDIT);
|
ClrBit(_no_scroll, SCROLL_EDIT);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user