Avoid double free. Wasn't triggered before, because no data was passed to destroy.

svn path=/trunk/netsurf/; revision=12681
This commit is contained in:
Ole Loots 2011-08-30 21:41:10 +00:00
parent 52bf4e0cd1
commit 8e47876964
1 changed files with 0 additions and 4 deletions

View File

@ -336,7 +336,6 @@ int window_destroy( struct gui_window * gw)
int err = 0;
search_destroy( gw );
if( input_window == gw )
input_window = NULL;
@ -632,9 +631,6 @@ error:
static void __CDECL evnt_window_destroy( WINDOW *win, short buff[8], void *data )
{
LOG(("%s\n", __FUNCTION__ ));
if( data )
free( data );
}
static void __CDECL evnt_window_close( WINDOW *win, short buff[8], void *data )