summaryrefslogtreecommitdiff
path: root/src/eom-plugin-engine.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-11-03 15:14:41 +0300
committerinfirit <[email protected]>2014-12-23 13:57:32 +0100
commitd239e3a08cf1e6a437976c3f5b3206a30ef33e67 (patch)
treeda51fa3d1adb253d466e1552284aebf8e4ac61fb /src/eom-plugin-engine.c
parent2347bbac04098a28109ac86c7bbd132e7cf7a488 (diff)
downloadeom-d239e3a08cf1e6a437976c3f5b3206a30ef33e67.tar.bz2
eom-d239e3a08cf1e6a437976c3f5b3206a30ef33e67.tar.xz
allocate memory a bit later to avoid possible leaks
Diffstat (limited to 'src/eom-plugin-engine.c')
-rw-r--r--src/eom-plugin-engine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eom-plugin-engine.c b/src/eom-plugin-engine.c
index 11a59ea..5207d95 100644
--- a/src/eom-plugin-engine.c
+++ b/src/eom-plugin-engine.c
@@ -509,12 +509,12 @@ load_plugin_module (EomPluginInfo *info)
return FALSE;
}
- dir = g_path_get_dirname (info->file);
-
g_return_val_if_fail ((info->location != NULL) &&
(info->location[0] != '\0'),
FALSE);
+ dir = g_path_get_dirname (info->file);
+
info->module = G_TYPE_MODULE (
eom_python_module_new (dir, info->location));