memory not being freed?xxx

Nicolas Dufresne nicolas.dufresne at collabora.com
Wed May 6 13:22:31 PDT 2015


Le mercredi 06 mai 2015 à 18:48 +0000, Spruyt, Randy a écrit :
>         > // need to get the underlying buffer to store data in
>         > gst_buffer_map (buf, &info, GST_MAP_WRITE);
When you map a buffer you must a) check the return value, otherwise
you may be accessing random pointer and b) unmap the buffer, see
gst_buffer_unmap(). The second is causing the leak.
Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150506/c677fa98/attachment.html>


More information about the gstreamer-devel mailing list