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



commit 1162fe023fcd2b3981bc7a880f268f904622b7f8
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 becebed..89f8bc2 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]