[gnome-software] packagekit: Fix a leak when resolving packages



commit af6e490d728de655ca43b9c0e176c34b74a5be99
Author: Kalev Lember <klember redhat com>
Date:   Fri Oct 12 14:57:52 2018 +0200

    packagekit: Fix a leak when resolving packages

 plugins/packagekit/gs-plugin-packagekit-refine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/packagekit/gs-plugin-packagekit-refine.c 
b/plugins/packagekit/gs-plugin-packagekit-refine.c
index c4281137..673c5425 100644
--- a/plugins/packagekit/gs-plugin-packagekit-refine.c
+++ b/plugins/packagekit/gs-plugin-packagekit-refine.c
@@ -161,7 +161,7 @@ gs_plugin_packagekit_resolve_packages (GsPlugin *plugin,
                                        GError **error)
 {
        PkBitfield filter;
-       GsAppList *resolve2_list;
+       g_autoptr(GsAppList) resolve2_list = NULL;
 
        /* first, try to resolve packages with ARCH filter */
        filter = pk_bitfield_from_enums (PK_FILTER_ENUM_NEWEST,


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