[grilo-plugins] lua-factory: Fix memory leak



commit 98ba62272e7dfe5aa7a84c959e767f8daa5c45c4
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 30 01:18:39 2016 +0100

    lua-factory: Fix memory leak
    
    The cancellable referenced in each fetch operation's data was not
    unreferenced except the one in the last fetch in the sequence.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=773789

 src/lua-factory/grl-lua-library.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/lua-factory/grl-lua-library.c b/src/lua-factory/grl-lua-library.c
index eff8ff3..4020857 100644
--- a/src/lua-factory/grl-lua-library.c
+++ b/src/lua-factory/grl-lua-library.c
@@ -516,6 +516,7 @@ grl_util_fetch_done (GObject *source_object,
     if (fo->results[i] == NULL) {
       /* Clean up this operation, and wait for
        * other operations to complete */
+      g_object_unref (fo->cancellable);
       g_free (fo->url);
       g_free (fo);
       return;


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