mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 14:59:47 +03:00
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:
parent
52bf4e0cd1
commit
8e47876964
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user