From f019c782afaaa61f1cdd0e375f8856f72768ee5a Mon Sep 17 00:00:00 2001 From: Benjamin Smedberg Date: Wed, 13 Jun 2012 15:03:03 -0700 Subject: [PATCH] Bug 747683 - Don't unload the plugin library right before exiting the plugin process, because some plugins are using atexit handlers, r=josh --- dom/plugins/ipc/PluginModuleChild.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dom/plugins/ipc/PluginModuleChild.cpp b/dom/plugins/ipc/PluginModuleChild.cpp index 2d7955a10ab7..4a1eed0ef266 100644 --- a/dom/plugins/ipc/PluginModuleChild.cpp +++ b/dom/plugins/ipc/PluginModuleChild.cpp @@ -113,9 +113,9 @@ PluginModuleChild::PluginModuleChild() PluginModuleChild::~PluginModuleChild() { NS_ASSERTION(gInstance == this, "Something terribly wrong here!"); - if (mLibrary) { - PR_UnloadLibrary(mLibrary); - } + + // We don't unload the plugin library in case it uses atexit handlers or + // other similar hooks. DeinitGraphics(); -- 2.11.4.GIT