[gnome-software/gnome-3-16] Plug a leak in the dummy plugin
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-16] Plug a leak in the dummy plugin
- Date: Mon, 11 May 2015 09:19:25 +0000 (UTC)
commit f4bb027ca640a4821daca13b511778b6ff3de1b2
Author: Kalev Lember <kalevlember gmail com>
Date: Thu Apr 2 09:47:21 2015 +0200
Plug a leak in the dummy plugin
src/plugins/gs-plugin-dummy.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-dummy.c b/src/plugins/gs-plugin-dummy.c
index e261453..81a8c83 100644
--- a/src/plugins/gs-plugin-dummy.c
+++ b/src/plugins/gs-plugin-dummy.c
@@ -98,6 +98,7 @@ gs_plugin_add_updates (GsPlugin *plugin,
gs_app_set_kind (app, GS_APP_KIND_NORMAL);
gs_app_set_id_kind (app, AS_ID_KIND_DESKTOP);
gs_plugin_add_app (list, app);
+ g_object_unref (app);
/* add an OS update */
app = gs_app_new ("libvirt-glib-devel;0.0.1;noarch;fedora");
@@ -106,6 +107,7 @@ gs_plugin_add_updates (GsPlugin *plugin,
gs_app_set_kind (app, GS_APP_KIND_PACKAGE);
gs_app_set_id_kind (app, AS_ID_KIND_DESKTOP);
gs_plugin_add_app (list, app);
+ g_object_unref (app);
/* add a second OS update */
app = gs_app_new ("gnome-boxes-libs;0.0.1;i386;updates-testing");
@@ -114,6 +116,7 @@ gs_plugin_add_updates (GsPlugin *plugin,
gs_app_set_kind (app, GS_APP_KIND_PACKAGE);
gs_app_set_id_kind (app, AS_ID_KIND_DESKTOP);
gs_plugin_add_app (list, app);
+ g_object_unref (app);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]