[libsoup] Fix a warning in last commit



commit 763dee45853bbd9e57fa12631153656d9a9987b5
Author: Dan Winship <danw gnome org>
Date:   Fri May 25 08:35:32 2012 -0400

    Fix a warning in last commit

 libsoup/soup-message-body.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-message-body.c b/libsoup/soup-message-body.c
index 899c04a..9a6ad75 100644
--- a/libsoup/soup-message-body.c
+++ b/libsoup/soup-message-body.c
@@ -323,7 +323,9 @@ soup_buffer_get_as_bytes (SoupBuffer *buffer)
 	SoupBuffer *copy;
 
 	copy = soup_buffer_copy (buffer);
-	return g_bytes_new_with_free_func (copy->data, copy->length, soup_buffer_free, copy);
+	return g_bytes_new_with_free_func (copy->data, copy->length,
+					   (GDestroyNotify)soup_buffer_free,
+					   copy);
 }
 
 GType



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