[gnome-software] trivial: Fix a tiny leak when installing a flatpakref file



commit 4b9ac2276d99d3eafd86a7f0ee0079d717640ae1
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jul 17 14:17:36 2017 +0100

    trivial: Fix a tiny leak when installing a flatpakref file

 plugins/flatpak/gs-plugin-flatpak.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/flatpak/gs-plugin-flatpak.c b/plugins/flatpak/gs-plugin-flatpak.c
index 873a80c..9274ed9 100644
--- a/plugins/flatpak/gs-plugin-flatpak.c
+++ b/plugins/flatpak/gs-plugin-flatpak.c
@@ -494,9 +494,9 @@ gs_plugin_flatpak_file_to_app_bundle (GsPlugin *plugin,
                                      GError **error)
 {
        GsPluginData *priv = gs_plugin_get_data (plugin);
-       GsFlatpak *flatpak_tmp;
        g_autoptr(GsApp) app_tmp = NULL;
        g_autoptr(GsAppList) list_tmp = NULL;
+       g_autoptr(GsFlatpak) flatpak_tmp = NULL;
 
        /* only use the temporary GsFlatpak to avoid the auth dialog */
        flatpak_tmp = gs_plugin_flatpak_create_temporary (plugin, cancellable, error);
@@ -547,9 +547,9 @@ gs_plugin_flatpak_file_to_app_ref (GsPlugin *plugin,
 {
        GsPluginData *priv = gs_plugin_get_data (plugin);
        GsApp *runtime_app;
-       GsFlatpak *flatpak_tmp;
        g_autoptr(GsApp) app_tmp = NULL;
        g_autoptr(GsAppList) list_tmp = NULL;
+       g_autoptr(GsFlatpak) flatpak_tmp = NULL;
 
        /* only use the temporary GsFlatpak to avoid the auth dialog */
        flatpak_tmp = gs_plugin_flatpak_create_temporary (plugin, cancellable, error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]