Fix a warning in last commit
authorDan Winship <danw@gnome.org>
Fri, 25 May 2012 12:35:32 +0000 (08:35 -0400)
committerDan Winship <danw@gnome.org>
Fri, 25 May 2012 15:17:50 +0000 (11:17 -0400)
libsoup/soup-message-body.c

index 899c04a..9a6ad75 100644 (file)
@@ -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