On Thu, Jul 19, 2012 at 5:10 AM, Maksym Veremeyenko <[email protected]> wrote: > hi, > > attached patch fixes first three leaks in producer_avformat. > > unfixed leak i found comes from mlt_cache > > ==11279== 10,612,830 (880 direct, 10,611,950 indirect) bytes in 10 blocks > are definitely lost in loss record 50 of 50 > ==11279== at 0x4A05BB4: calloc (vg_replace_malloc.c:467) > ==11279== by 0x4C34BA7: mlt_frame_init (mlt_frame.c:44) > ==11279== by 0x4C35EE9: mlt_frame_clone (mlt_frame.c:994) > ==11279== by 0x4C4AFAB: mlt_cache_put_frame (mlt_cache.c:552) > ==11279== by 0xC0BC1C5: producer_get_image (producer_avformat.c:1711) > ==11279== by 0x4C35099: mlt_frame_get_image (mlt_frame.c:452) > ==11279== by 0xB683478: filter_get_image (filter_crop.c:77) > ==11279== by 0x4C35099: mlt_frame_get_image (mlt_frame.c:452) > ==11279== by 0x101E2AB2: filter_get_image (filter_deinterlace.c:271) > ==11279== by 0x4C35099: mlt_frame_get_image (mlt_frame.c:452) > ==11279== by 0xB688BFA: filter_get_image (filter_rescale.c:217) > ==11279== by 0x4C35099: mlt_frame_get_image (mlt_frame.c:452) > ==11279== > > that seems happens because of frames caching is hack to origin cache > functionality and mlt_cache_close do not destroy cached frames. > > would be a good idea to create a local cache in producer_avformat?
I applied your patches, thank you. But I need to analyse this problem further because I want to keep all caching logic in one place. -- +-DRD-+ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mlt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mlt-devel
