[gnome-software] trivial: Fix a tiny memory leak when installing local files



commit 9268fbfe1bf8d8e108a5a091b64ff33497990a54
Author: Richard Hughes <richard hughsie com>
Date:   Mon Sep 28 10:50:57 2015 +0100

    trivial: Fix a tiny memory leak when installing local files

 src/plugins/gs-plugin-packagekit-refresh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-refresh.c b/src/plugins/gs-plugin-packagekit-refresh.c
index 13f45b1..76060e4 100644
--- a/src/plugins/gs-plugin-packagekit-refresh.c
+++ b/src/plugins/gs-plugin-packagekit-refresh.c
@@ -234,7 +234,7 @@ gs_plugin_filename_to_app (GsPlugin *plugin,
        const gchar *package_id;
        gboolean supported;
        PkDetails *item;
-       PkResults *results = NULL;
+       g_autoptr (PkResults) results = NULL;
        g_autofree gchar *basename = NULL;
        g_auto(GStrv) files = NULL;
        g_auto(GStrv) split = NULL;


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