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:
ehouse 2009-02-28 16:31:03 +00:00
parent 3bf116c936
commit 46cb6c2955
2 changed files with 4 additions and 4 deletions

View file

@ -565,9 +565,7 @@ quit( void* XP_UNUSED(dunno), GtkAppGlobals* globals )
vtmgr_destroy( MEMPOOL globals->cGlobals.params->vtMgr );
mpool_destroy( globals->cGlobals.params->util->mpool );
gtk_exit( 0 );
gtk_main_quit();
} /* quit */
GtkWidget*

View file

@ -1051,8 +1051,10 @@ main( int argc, char** argv )
/* run server as faceless process? */
}
dict_destroy( mainParams.dict );
linux_util_vt_destroy( mainParams.util );
mpool_destroy( mainParams.util->mpool );
XP_LOGF( "exiting main" );
return 0;
} /* main */