Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marcopg@litl.com>2009-03-17 13:06:42 (GMT)
committer Marco Pesenti Gritti <marcopg@litl.com>2010-07-27 22:04:21 (GMT)
commite3d0bb4b1fc19932f51fffaa96c844221293cafa (patch)
tree7a665c483594470b52ed7d9a1a11378678333949
parent76053b7cfe8c51acaaf416a360c3d3c1bf20a068 (diff)
Avoid unnecessary allocation.
-rw-r--r--browser-plugin/glue.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/browser-plugin/glue.cpp b/browser-plugin/glue.cpp
index f63fb9e..0b989d4 100644
--- a/browser-plugin/glue.cpp
+++ b/browser-plugin/glue.cpp
@@ -47,11 +47,8 @@ InitEvince (void)
/* Keep libevview in memory. NPPVpluginKeepLibraryInMemory is broken.
See https://bugzilla.mozilla.org/show_bug.cgi?id=359870 */
- 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);
-
+ GModule *module = g_module_open ("libevview." G_MODULE_SUFFIX "."
+ EV_BINARY_VERSION, (GModuleFlags)0);
if (module != NULL) {
g_module_make_resident (module);
g_module_close (module);