[totem] Fix a double-free when downloading YouTube video thumbnails.



commit ca5014450dac73bdd1f654f1307301fd1fa8ee9d
Author: Philip Withnall <philip tecnocode co uk>
Date:   Wed Jun 3 14:19:06 2009 +0100

    Fix a double-free when downloading YouTube video thumbnails.
    
    2009-06-03  Philip Withnall  <philip tecnocode co uk>
    
    	* src/plugins/youtube/totem-youtube.c (new_from_stream_thread): Fix
    	a double-free when downloading YouTube video thumbnails.
---
 ChangeLog                           |    5 +++++
 src/plugins/youtube/totem-youtube.c |    1 -
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ccb2d76..de7e830 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-03  Philip Withnall  <philip tecnocode co uk>
+
+	* src/plugins/youtube/totem-youtube.c (new_from_stream_thread): Fix
+	a double-free when downloading YouTube video thumbnails.
+
 2009-05-31  Philip Withnall  <philip tecnocode co uk>
 
 	* docs/reference/Makefile.am: Add the builddir to gtkdoc-mkhtml's
diff --git a/src/plugins/youtube/totem-youtube.c b/src/plugins/youtube/totem-youtube.c
index b1b1b29..becf664 100644
--- a/src/plugins/youtube/totem-youtube.c
+++ b/src/plugins/youtube/totem-youtube.c
@@ -144,7 +144,6 @@ new_from_stream_thread (GSimpleAsyncResult *result,
 	else
 		pixbuf = gdk_pixbuf_new_from_stream (stream, cancellable, &error);
 
-	g_free (data); /* GSimpleAsyncResult doesn't destroy result pointers when setting a new value over the top */
 	g_simple_async_result_set_op_res_gpointer (result, NULL, NULL);
 
 	/* Set the new pixbuf as the result, or error out */



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