GNOME Bugzilla – Bug 552778
add free_func in gstbuffer instances
Last modified: 2008-10-06 18:02:22 UTC
Sometimes it's just too much effort to subclass GstBuffer, just to specify that the free function should be free() instead of g_free(). So I would suggest that buffer instances could include free functions in themselves. Patch attached. The patch does not expand the size of GstBuffer, even if the reserved members were reserved in some future version of GStreamer, as we could simply drop the malloc_data field and keep the free_func function pointer.
Created attachment 118948 [details] [review] patch to add free_func instance function
Created attachment 119646 [details] [review] change so that the free func defaults to g_free, and is called on malloc_data The people are with me on this one
me too - commit it after the thaw for schizzle