diff -r 16ee9854091e -r c67581486cde misc_gui.c --- a/misc_gui.c Sun Nov 14 09:07:15 2004 +0000 +++ b/misc_gui.c Sun Nov 14 09:31:39 2004 +0000 @@ -802,9 +802,13 @@ if (str_eq(WP(w,querystr_d).buf, WP(w,querystr_d).buf + MAX_QUERYSTR_LEN)) { DeleteWindow(w); } else { - Window *parent = FindWindowById(WP(w,querystr_d).wnd_class, WP(w,querystr_d).wnd_num); byte *buf = WP(w,querystr_d).buf; + WindowClass wnd_class = WP(w,querystr_d).wnd_class; + WindowNumber wnd_num = WP(w,querystr_d).wnd_num; + Window *parent; + DeleteWindow(w); + parent = FindWindowById(wnd_class, wnd_num); if (parent != NULL) { WindowEvent e; e.event = WE_ON_EDIT_TEXT;