[gnome-software/wip/ubuntu-3-22: 33/33] snap: Fix leak of GsApp
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/ubuntu-3-22: 33/33] snap: Fix leak of GsApp
- Date: Thu, 26 Oct 2017 21:44:28 +0000 (UTC)
commit a0c27e0ae1dea1c72d70d68b2097e6ae234e8056
Author: Robert Ancell <robert ancell canonical com>
Date: Fri Sep 29 11:19:19 2017 -0400
snap: Fix leak of GsApp
src/plugins/gs-plugin-snap.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-snap.c b/src/plugins/gs-plugin-snap.c
index f758a68..f73dab9 100644
--- a/src/plugins/gs-plugin-snap.c
+++ b/src/plugins/gs-plugin-snap.c
@@ -262,7 +262,8 @@ gs_plugin_url_to_app (GsPlugin *plugin,
return TRUE;
snap = json_array_get_object_element (snaps, 0);
- gs_app_list_add (list, snap_to_app (plugin, snap));
+ app = snap_to_app (plugin, snap);
+ gs_app_list_add (list, app);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]