Re: [PATCH] youtube: fix error leak




Pushed.

commit e50d532a65b751c00700ad81690df17410ae92b0
Author: Fabien Lebaillif - Delamare <fabien developers arq-media com>
Date:   Tue Jan 18 11:40:11 2011 +0000

    youtube: fix memory leak

    Signed-off-by: Iago Toral Quiroga <itoral igalia com>

On Tue, 18 Jan 2011 11:40:11 +0000, Fabien Lebaillif - Delamare <fabien developers arq-media com> wrote:
---
 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);
   }



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