Allocator Sample Leaks Memory
DirectShow programming library for .Net programmers
Brought to you by:
snarfle
I found there's a serious memory leak in VMR9Allocator Sample.
After open and close the video, it will leak about 10 MB.
I check the code and it seems correct to free all managed objects.
I also use tools (Yourkit) to look into it and it indeed free all managed objects, but in handle view, it apparently exist handle leak.
But after hard working for 3 days, I still can't find any way to resolve or workaround it.
Original I want to reuse Allocator instead of new one, but it introduce much more issues, such as random crash.