[gnome-software/gnome-3-18] trivial: Fix a tiny memory leak when installing local files
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-18] trivial: Fix a tiny memory leak when installing local files
- Date: Tue, 6 Oct 2015 11:22:48 +0000 (UTC)
commit 6c3599b92ded386094d044f7230f3a3a72c18a1d
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 cd558b7..182d642 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]