Commit d0e62898 authored by Martin Finkel's avatar Martin Finkel

MediaPlayer: Add missing GCHandle.Free()

Closes #367
parent 8f13e11a
...@@ -2405,11 +2405,10 @@ namespace LibVLCSharp.Shared ...@@ -2405,11 +2405,10 @@ namespace LibVLCSharp.Shared
if(disposing) if(disposing)
{ {
if(IsPlaying) if(IsPlaying)
{
Stop(); Stop();
}
Media?.Dispose(); if (_gcHandle.IsAllocated)
_gcHandle.Free();
} }
base.Dispose(disposing); base.Dispose(disposing);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment