--- src/gecko-utils.cpp (revision 342) +++ src/gecko-utils.cpp (working copy) @@ -39,6 +39,7 @@ #include <nsIPrefService.h> #include <nsIServiceManager.h> #include <nsServiceManagerUtils.h> +#include <nspr.h> static nsIPrefBranch* gPrefBranch; @@ -97,7 +98,13 @@ NS_IF_RELEASE (gPrefBranch); gPrefBranch = nsnull; +#ifdef XPCOM_GLUE + XPCOMGlueShutdown(); + NS_ShutdownXPCOM (nsnull); + PR_ProcessExit (0); +#else gtk_moz_embed_pop_startup (); +#endif #ifdef HAVE_GECKO_1_9 NS_LogTerm ();