[gnome-software] systemd updates plugin: Plug a leak when adding apps to the list of updates
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] systemd updates plugin: Plug a leak when adding apps to the list of updates
- Date: Sun, 5 Oct 2014 12:48:30 +0000 (UTC)
commit cb8d8ec2a97d3bfbb19ddeb48301d74a1b6a4c60
Author: Kalev Lember <kalevlember gmail com>
Date: Sun Oct 5 14:29:51 2014 +0200
systemd updates plugin: Plug a leak when adding apps to the list of updates
src/plugins/gs-plugin-systemd-updates.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-systemd-updates.c b/src/plugins/gs-plugin-systemd-updates.c
index 3adad93..a9ec5a4 100644
--- a/src/plugins/gs-plugin-systemd-updates.c
+++ b/src/plugins/gs-plugin-systemd-updates.c
@@ -138,6 +138,7 @@ gs_plugin_add_updates (GsPlugin *plugin,
gs_app_set_state (app, AS_APP_STATE_UPDATABLE);
gs_app_set_kind (app, GS_APP_KIND_PACKAGE);
gs_plugin_add_app (list, app);
+ g_object_unref (app);
g_strfreev (split);
}
out:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]