[gnome-software] Fix a small memory leak in the AppStream plugin
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Fix a small memory leak in the AppStream plugin
- Date: Wed, 2 Jul 2014 14:48:31 +0000 (UTC)
commit 31f93fedb86563d62e7bfcbf9ef05a2cda8dbcc1
Author: Richard Hughes <richard hughsie com>
Date: Wed Jul 2 15:37:59 2014 +0100
Fix a small memory leak in the AppStream plugin
src/plugins/gs-plugin-appstream.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 2229bc7..202d49c 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -792,6 +792,7 @@ gs_plugin_add_category_apps (GsPlugin *plugin,
if (!ret)
goto out;
gs_plugin_add_app (list, app);
+ g_object_unref (app);
}
gs_profile_stop (plugin->profile, "appstream::add-category-apps");
out:
@@ -833,6 +834,7 @@ gs_plugin_add_search (GsPlugin *plugin,
if (!ret)
goto out;
gs_plugin_add_app (list, app);
+ g_object_unref (app);
}
}
gs_profile_stop (plugin->profile, "appstream::search");
@@ -874,6 +876,7 @@ gs_plugin_add_installed (GsPlugin *plugin,
if (!ret)
goto out;
gs_plugin_add_app (list, app);
+ g_object_unref (app);
}
}
gs_profile_stop (plugin->profile, "appstream::add_installed");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]