<div>hi,</div>
<div> </div>
<div>I wrote a small program that calls encoder_open and encoder_close in a loop. </div>
<div>using deleaker tools I found the following leaks:</div>
<div>I am not familiar with x264 internals at all, so I am not able to suggest a fix.</div>
<div>I hope this helps somewhat, though.</div>
<div> </div>
<div>x264filter.dll!_heap_alloc_base Line 105 (f:\sp\vctools\crt_bld\self_x86\crt\src\malloc.c)<br>x264filter.dll!_heap_alloc_dbg Line 411 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!_nh_malloc_dbg
Line 268 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!malloc Line 154 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!x264_malloc Line 756 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)
<br><strong>x264filter.dll!x264_frame_new Line 125 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)<br></strong>x264filter.dll!x264_frame_pop_unused Line 888 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)
<br>x264filter.dll!x264_encoder_open Line 699 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\encoder\encoder.c)<br>x264filter.dll!rayv::media::X264Filter::InitX264 Line 442 (d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
<br>x264filter.dll!rayv::media::X264Filter::StartStreaming Line 349 (d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)<br>memtest.exe!main Line 26 (d:\work\trunk.good\media\msw\filters\x264filter\memtest\memtest.cpp)
<br>memtest.exe!__tmainCRTStartup Line 597 (f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)<br>memtest.exe!mainCRTStartup Line 414 (f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)</div>
<div><font color="#010001" size="2"><font color="#010001" size="2"><font color="#010001" size="2">
<p>x264filter.dll!_heap_alloc_base Line 105 (f:\sp\vctools\crt_bld\self_x86\crt\src\malloc.c)<br>x264filter.dll!_heap_alloc_dbg Line 411 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!_nh_malloc_dbg
Line 268 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!malloc Line 154 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!x264_malloc Line 756 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)
<br><strong>x264filter.dll!x264_frame_new Line 126 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)<br></strong>x264filter.dll!x264_frame_pop_unused Line 888 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)
<br>x264filter.dll!x264_encoder_open Line 699 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\encoder\encoder.c)<br>x264filter.dll!rayv::media::X264Filter::InitX264 Line 442 (d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
<br>x264filter.dll!rayv::media::X264Filter::StartStreaming Line 349 (d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)<br>memtest.exe!main Line 26 (d:\work\trunk.good\media\msw\filters\x264filter\memtest\memtest.cpp)
<br>memtest.exe!__tmainCRTStartup Line 597 (f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)<br>memtest.exe!mainCRTStartup Line 414 (f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)</p>
<p>x264filter.dll!_heap_alloc_base Line 105 (f:\sp\vctools\crt_bld\self_x86\crt\src\malloc.c)<br>x264filter.dll!_heap_alloc_dbg Line 411 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!_nh_malloc_dbg
Line 268 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!malloc Line 154 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!x264_malloc Line 756 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)
<br><strong>x264filter.dll!x264_frame_new Line 111 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)<br></strong>x264filter.dll!x264_frame_pop_unused Line 888 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)
<br>x264filter.dll!x264_encoder_open Line 699 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\encoder\encoder.c)<br>x264filter.dll!rayv::media::X264Filter::InitX264 Line 442 (d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
<br>x264filter.dll!rayv::media::X264Filter::StartStreaming Line 349 (d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)<br>memtest.exe!main Line 26 (d:\work\trunk.good\media\msw\filters\x264filter\memtest\memtest.cpp)
<br>memtest.exe!__tmainCRTStartup Line 597 (f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)<br>memtest.exe!mainCRTStartup Line 414 (f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)</p>
<p>x264filter.dll!_heap_alloc_base Line 105 (f:\sp\vctools\crt_bld\self_x86\crt\src\malloc.c)<br>x264filter.dll!_heap_alloc_dbg Line 411 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!_nh_malloc_dbg
Line 268 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!malloc Line 154 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!x264_malloc Line 756 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)
<br><strong>x264filter.dll!x264_frame_new Line 129 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)<br></strong>x264filter.dll!x264_frame_pop_unused Line 888 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)
<br>x264filter.dll!x264_encoder_open Line 699 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\encoder\encoder.c)<br>x264filter.dll!rayv::media::X264Filter::InitX264 Line 442 (d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
<br>x264filter.dll!rayv::media::X264Filter::StartStreaming Line 349 (d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)<br>memtest.exe!main Line 26 (d:\work\trunk.good\media\msw\filters\x264filter\memtest\memtest.cpp)
<br>memtest.exe!__tmainCRTStartup Line 597 (f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)<br>memtest.exe!mainCRTStartup Line 414 (f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)</p>
<p>x264filter.dll!_heap_alloc_base Line 105 (f:\sp\vctools\crt_bld\self_x86\crt\src\malloc.c)<br>x264filter.dll!_heap_alloc_dbg Line 411 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!_nh_malloc_dbg
Line 268 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!malloc Line 154 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!x264_malloc Line 756 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)
<br>x264filter.dll!x264_cqm_init Line 110 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\set.c)<br><strong>x264filter.dll!x264_encoder_open Line 630 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\encoder\encoder.c)
<br></strong>x264filter.dll!rayv::media::X264Filter::InitX264 Line 442 (d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)<br>x264filter.dll!rayv::media::X264Filter::StartStreaming Line 349 (d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
<br>memtest.exe!main Line 26 (d:\work\trunk.good\media\msw\filters\x264filter\memtest\memtest.cpp)<br>memtest.exe!__tmainCRTStartup Line 597 (f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)<br>memtest.exe!mainCRTStartup Line 414 (f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)
</p>
<p>x264filter.dll!_heap_alloc_base Line 105 (f:\sp\vctools\crt_bld\self_x86\crt\src\malloc.c)<br>x264filter.dll!_heap_alloc_dbg Line 411 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!_nh_malloc_dbg
Line 268 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!malloc Line 154 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!x264_malloc Line 756 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)
<br>x264filter.dll!x264_frame_new Line 111 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)<br>x264filter.dll!x264_frame_pop_unused Line 888 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)
<br><strong>x264filter.dll!x264_encoder_open Line 699 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\encoder\encoder.c)<br></strong>x264filter.dll!rayv::media::X264Filter::InitX264 Line 442 (d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
<br>x264filter.dll!rayv::media::X264Filter::StartStreaming Line 349 (d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)<br>memtest.exe!main Line 26 (d:\work\trunk.good\media\msw\filters\x264filter\memtest\memtest.cpp)
<br>memtest.exe!__tmainCRTStartup Line 597 (f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)<br>memtest.exe!mainCRTStartup Line 414 (f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)</p>
<p><font color="#010001" size="2">x264filter.dll!_heap_alloc_base Line 105 (f:\sp\vctools\crt_bld\self_x86\crt\src\malloc.c)<br>x264filter.dll!_heap_alloc_dbg Line 411 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>
x264filter.dll!_nh_malloc_dbg Line 268 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!_malloc_dbg Line 191 (f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)<br>x264filter.dll!_stbuf Line 91 (f:\sp\vctools\crt_bld\self_x86\crt\src\_sftbuf.c)
<br>x264filter.dll!fprintf Line 69 (f:\sp\vctools\crt_bld\self_x86\crt\src\fprintf.c)<br>x264filter.dll!x264_log_default Line 580 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)<br><strong>x264filter.dll!x264_log
Line 554 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)<br></strong>x264filter.dll!x264_encoder_open Line 683 (d:\work\trunk.good\media\msw\filters\x264filter\x264.new\encoder\encoder.c)<br>x264filter.dll!rayv::media::X264Filter::InitX264
Line 442 (d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)<br>x264filter.dll!rayv::media::X264Filter::StartStreaming Line 349 (d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)<br>memtest.exe!main
Line 15 (d:\work\trunk.good\media\msw\filters\x264filter\memtest\memtest.cpp)<br>memtest.exe!__tmainCRTStartup Line 597 (f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)<br>memtest.exe!mainCRTStartup Line 414 (f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)
</font></p>
<p><font color="#010001" size="2"></font> </p>
<p><font color="#010001" size="2"> </font></p></font></font></font></div>