[gnome-software] search provider: Plug a GError leak



commit 42aa46c09969bd602af3d1a74f9ac71f5a460340
Author: Kalev Lember <kalevlember gmail com>
Date:   Sun Oct 5 14:01:27 2014 +0200

    search provider: Plug a GError leak

 src/gs-shell-search-provider.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-shell-search-provider.c b/src/gs-shell-search-provider.c
index 1827b30..8f379bf 100644
--- a/src/gs-shell-search-provider.c
+++ b/src/gs-shell-search-provider.c
@@ -113,7 +113,6 @@ search_done_cb (GObject *source,
        PendingSearch *search = user_data;
        GsShellSearchProvider *self = search->provider;
        GList *list, *l;
-       GError *error = NULL;
        GVariantBuilder builder;
 
        if (self->current_search != search) {
@@ -124,7 +123,7 @@ search_done_cb (GObject *source,
 
        pending_search_unref (search);
 
-       list = gs_plugin_loader_search_finish (self->plugin_loader, res, &error);
+       list = gs_plugin_loader_search_finish (self->plugin_loader, res, NULL);
        if (list == NULL) {
                cancel_current_search (self);
                return; 


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