[gst-devel] Memory leak on a PushSrc subclass

Corentin BARON corentin.baron at inrialpes.fr
Wed Aug 16 11:27:58 CEST 2006


Thanks a lot !

I wondered why gstreamer 0.10 didn't free my buffer where 0.8 did,  
that fully addressed my problem and my source plugin is now fully  
functionnal

thanks again,
Corentin.

Le 16 août 06 à 11:17, Jan Schmidt a écrit :

> When you do gst_buffer_new() and then set the data, the buffer  
> considers
> that it doesn't own the data itself and won't free it. You can  
> either do
> gst_buffer_new_and_alloc(), or ensure that when you set the data on  
> the
> buffer you also set the malloc_data member of the GstBuffer to  
> point to
> the array.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: corentinbaron.gpgkey
Type: application/octet-stream
Size: 916 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20060816/0d8ca74a/attachment.obj>
-------------- next part --------------




More information about the gstreamer-devel mailing list