Skip to content

Commit

Permalink
Merge pull request ZeBobo5#52 from GonzRu/disposefix
Browse files Browse the repository at this point in the history
fix VlcMediaPlayer Disposing
  • Loading branch information
ZeBobo5 committed May 11, 2015
2 parents 8e7f5ad + 121f0a0 commit eb56c26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Vlc.DotNet.Core/VlcMediaPlayer/VlcMediaPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ private void Dispose(bool disposing)
if (IsPlaying())
Stop();

if (VlcMedia.LoadedMedias.ContainsKey(this))
foreach (var loadedMedia in VlcMedia.LoadedMedias[this])
{
loadedMedia.Dispose();
Expand Down

0 comments on commit eb56c26

Please sign in to comment.