[PATCH] youtube: fix error leak



---
 src/youtube/grl-youtube.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/youtube/grl-youtube.c b/src/youtube/grl-youtube.c
index 047f167..c71b9f7 100644
--- a/src/youtube/grl-youtube.c
+++ b/src/youtube/grl-youtube.c
@@ -460,6 +460,7 @@ read_done_cb (GObject *source_object,
   if (wc_error) {
     GRL_WARNING ("Failed to open '%s': %s", arc->url, wc_error->message);
     arc->callback (NULL, arc->user_data);
+    g_error_free(wc_error);
   } else {
     arc->callback (content, arc->user_data);
   }
-- 
1.7.1



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