[gnome-online-accounts] lastfm: Fix memory leaks in lastfm_login()



commit fee5e9b6dd75596061f143a8b7c15b164a088187
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Sat Sep 19 22:56:23 2015 +0200

    lastfm: Fix memory leaks in lastfm_login()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755315

 src/goabackend/goalastfmprovider.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goalastfmprovider.c b/src/goabackend/goalastfmprovider.c
index 9d04f2c..a53042f 100644
--- a/src/goabackend/goalastfmprovider.c
+++ b/src/goabackend/goalastfmprovider.c
@@ -620,6 +620,10 @@ lastfm_login (GoaProvider                  *provider,
   rest_proxy_call_async (call, callback, NULL, data, &data->error);
 
   g_signal_connect (cancellable, "cancelled", G_CALLBACK (on_rest_proxy_call_cancelled_cb), call);
+
+  g_free (sig_md5);
+  g_free (sig);
+  g_object_unref (call);
 }
 
 /* ---------------------------------------------------------------------------------------------------- */


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