mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
fix assertion on exit: nuke mempool after everything it contains; call
gtk_main_quit rather than gtk_exit() so can exit from main()
This commit is contained in:
parent
3bf116c936
commit
46cb6c2955
2 changed files with 4 additions and 4 deletions
|
@ -565,9 +565,7 @@ quit( void* XP_UNUSED(dunno), GtkAppGlobals* globals )
|
||||||
|
|
||||||
vtmgr_destroy( MEMPOOL globals->cGlobals.params->vtMgr );
|
vtmgr_destroy( MEMPOOL globals->cGlobals.params->vtMgr );
|
||||||
|
|
||||||
mpool_destroy( globals->cGlobals.params->util->mpool );
|
gtk_main_quit();
|
||||||
|
|
||||||
gtk_exit( 0 );
|
|
||||||
} /* quit */
|
} /* quit */
|
||||||
|
|
||||||
GtkWidget*
|
GtkWidget*
|
||||||
|
|
|
@ -1051,8 +1051,10 @@ main( int argc, char** argv )
|
||||||
/* run server as faceless process? */
|
/* run server as faceless process? */
|
||||||
}
|
}
|
||||||
|
|
||||||
dict_destroy( mainParams.dict );
|
|
||||||
linux_util_vt_destroy( mainParams.util );
|
linux_util_vt_destroy( mainParams.util );
|
||||||
|
|
||||||
|
mpool_destroy( mainParams.util->mpool );
|
||||||
|
|
||||||
XP_LOGF( "exiting main" );
|
XP_LOGF( "exiting main" );
|
||||||
return 0;
|
return 0;
|
||||||
} /* main */
|
} /* main */
|
||||||
|
|
Loading…
Reference in a new issue