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



commit d0fbc56eb62e5c99d29669197c7d99ae64f6798d
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]