Commit c6b0c74b authored by Martin Finkel's avatar Martin Finkel

Samples: Dispose resources in WinForms sample

parent c1ae2d09
......@@ -21,11 +21,21 @@ namespace LibVLCSharp.WinForms.Sample
_mp = new MediaPlayer(_libVLC);
videoView1.MediaPlayer = _mp;
Load += Form1_Load;
FormClosed += Form1_FormClosed;
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
private void Form1_Load(object sender, EventArgs e)
_mp.Play(new Media(_libVLC, new Uri("")));
var media = new Media(_libVLC, new Uri(""));
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