[MPlayer-dev-eng] memleak day - now in swscaler

Michael Niedermayer michaelni at gmx.at
Thu Oct 17 00:45:52 CEST 2002


Hi

On Thursday 17 October 2002 00:51, Arpi wrote:
> Hi,
>
> swscaler leaks some memory, called from vo_x11.c:
>
> ==2589== 350820 bytes in 45 blocks are possibly lost in loss record 73 of
> 77 ==2589==    at 0x40047F1B: malloc (vg_clientfuncs.c:100)
> ==2589==    by 0x81CCE17: yuv2rgb_c_init (yuv2rgb.c:784)
> ==2589==    by 0x81CB3CE: yuv2rgb_init (yuv2rgb.c:299)
> ==2589==    by 0x81BE4F8: getSwsContext (swscale.c:2063)
>
> ==2589== 420984 bytes in 54 blocks are definitely lost in loss record 74 of
> 77 ==2589==    at 0x40047F1B: malloc (vg_clientfuncs.c:100)
> ==2589==    by 0x81CCE17: yuv2rgb_c_init (yuv2rgb.c:784)
> ==2589==    by 0x81CB3CE: yuv2rgb_init (yuv2rgb.c:299)
> ==2589==    by 0x81BE4F8: getSwsContext (swscale.c:2063)
>
> it seems that freeSwsContext() forget to free/uninit yuv2rgb.
hmm, small question, how do i uninit yuv2rgb if it doesnt have a uninit 
function? or did i miss it grep free yuv2rgb.c doesnt show much ...

actually this reminds me that yuv2rgb needs to be fixed (its not possible to 
use multiple yuv2rgb at once (well it does work if the same rgb format is 
used) ...

[...]

Michael



More information about the MPlayer-dev-eng mailing list