[libpeas] Free C modules that fail to be used
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Free C modules that fail to be used
- Date: Sun, 6 Mar 2011 12:59:37 +0000 (UTC)
commit bd7023c664d1396094eaa0f092f0170b6a698b51
Author: Garrett Regier <alias301 gmail com>
Date: Sat Mar 5 09:44:09 2011 -0800
Free C modules that fail to be used
This is possible because the plugin's types wouldn't
have been registered.
loaders/c/peas-plugin-loader-c.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/loaders/c/peas-plugin-loader-c.c b/loaders/c/peas-plugin-loader-c.c
index c09aca1..cc65393 100644
--- a/loaders/c/peas-plugin-loader-c.c
+++ b/loaders/c/peas-plugin-loader-c.c
@@ -82,6 +82,7 @@ peas_plugin_loader_c_load (PeasPluginLoader *loader,
g_warning ("Could not load plugin module: '%s'",
peas_plugin_info_get_name (info));
+ g_object_unref (module);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]