do not send around message for NULL dialog.

svn path=/trunk/netsurf/; revision=12782
This commit is contained in:
Ole Loots 2011-09-09 19:59:36 +00:00
parent 46339a296b
commit 6cde3888af

View File

@ -225,7 +225,7 @@ static void __CDECL evnt_close( WINDOW *win, short buff[8])
void search_destroy( struct gui_window * gw )
{
LOG(("search_destroy %p / %p", gw, current ));
if( current != NULL ){
if( current != NULL && current->formwind != NULL ){
ApplWrite( _AESapid, WM_CLOSED, current->formwind->handle, 0,0,0,0);
/* Handle Close event */
EvntWindom( MU_MESAG );