[libpeas] Fix two memory leaks
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Fix two memory leaks
- Date: Sat, 20 Dec 2014 17:22:16 +0000 (UTC)
commit 08e9aa6ad9930e90a9a6f47340edc352e7764b63
Author: Garrett Regier <garrettregier gmail com>
Date: Sat Dec 20 09:04:38 2014 -0800
Fix two memory leaks
libpeas/peas-plugin-info.c | 2 ++
tests/libpeas-gtk/plugin-manager-store.c | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libpeas/peas-plugin-info.c b/libpeas/peas-plugin-info.c
index 67f81ac..36c2229 100644
--- a/libpeas/peas-plugin-info.c
+++ b/libpeas/peas-plugin-info.c
@@ -183,6 +183,8 @@ _peas_plugin_info_new (const gchar *filename,
}
}
+ g_free (loader);
+
/* Get the dependency list */
info->dependencies = g_key_file_get_string_list (plugin_file,
"Plugin",
diff --git a/tests/libpeas-gtk/plugin-manager-store.c b/tests/libpeas-gtk/plugin-manager-store.c
index 1f4237a..0fea9a7 100644
--- a/tests/libpeas-gtk/plugin-manager-store.c
+++ b/tests/libpeas-gtk/plugin-manager-store.c
@@ -184,6 +184,8 @@ verify_model (TestFixture *fixture,
{
g_assert_not_reached ();
}
+
+ g_object_unref (model_icon_gicon);
}
g_free (model_icon_stock_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]