Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browser-plugin/glue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'browser-plugin/glue.cpp')
-rw-r--r--browser-plugin/glue.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/browser-plugin/glue.cpp b/browser-plugin/glue.cpp
index 74a3a34..f63fb9e 100644
--- a/browser-plugin/glue.cpp
+++ b/browser-plugin/glue.cpp
@@ -47,12 +47,17 @@ InitEvince (void)
/* Keep libevview in memory. NPPVpluginKeepLibraryInMemory is broken.
See https://bugzilla.mozilla.org/show_bug.cgi?id=359870 */
- GModule *module = g_module_open ("libevview", (GModuleFlags)0);
- if (module == NULL) {
+ char *file_name = g_strconcat ("libevview", "." G_MODULE_SUFFIX "."
+ EV_BINARY_VERSION, NULL);
+ GModule *module = g_module_open (file_name, (GModuleFlags)0);
+ g_free (file_name);
+
+ if (module != NULL) {
+ g_module_make_resident (module);
+ g_module_close (module);
+ } else {
return false;
}
- g_module_make_resident (module);
- g_module_close (module);
#endif
ev_init ();