Changeset - r9393:a18c5f13f1f9
[Not reviewed]
master
0 1 0
smatz - 16 years ago 2008-05-27 23:40:36
smatz@openttd.org
(svn r13304) -Fix (r13042): possible double free (showed up in r13092)
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/misc_gui.cpp
Show inline comments
 
@@ -1093,8 +1093,9 @@ struct QueryStringWindow : public QueryS
 
	~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);
 
	}
0 comments (0 inline, 0 general)