[gnome-software] trivial: Fix a tiny memory leak in the dpkg plugin



commit b172493e93c486d8a75279074369ac30173980f3
Author: Richard Hughes <richard hughsie com>
Date:   Thu Feb 23 15:25:36 2017 +0000

    trivial: Fix a tiny memory leak in the dpkg plugin

 src/plugins/gs-plugin-dpkg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-dpkg.c b/src/plugins/gs-plugin-dpkg.c
index 5d31bda..edf77c0 100644
--- a/src/plugins/gs-plugin-dpkg.c
+++ b/src/plugins/gs-plugin-dpkg.c
@@ -43,12 +43,12 @@ gs_plugin_file_to_app (GsPlugin *plugin,
                       GCancellable *cancellable,
                       GError **error)
 {
-       GsApp *app;
        guint i;
        g_autofree gchar *content_type = NULL;
        g_autofree gchar *output = NULL;
        g_auto(GStrv) argv = NULL;
        g_auto(GStrv) tokens = NULL;
+       g_autoptr(GsApp) app = NULL;
        g_autoptr(GString) str = NULL;
        const gchar *mimetypes[] = {
                "application/vnd.debian.binary-package",


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