Seeing sizeable memory leak using WPF LibVLCSharp
In my application, I'm creating a WPF view with a VideoView in it, playing a video, tearing down the view, and then doing that over and over again. I can show what I'm doing now:
https://www.youtube.com/watch?v=eJSzigL4GBk The video I'm playing is a rocket-launch cut-scene previewing the match results, at 2:47 in the video.
Anyway, I notice that each time I play my 4.5MB video, about 100MB-150MB is allocated. After a few minutes about two-thirds is eventually collected, but over playing the video 30 or so times my application has gobbled 2-3GB of memory. Is there anything I should be doing to release resources from the video player each time I play a video?