Commit 4ab458c8 authored by Felix Paul Kühne's avatar Felix Paul Kühne

discoverer: explicitly deallocate the media list before we release the libvlc instance

(cherry picked from commit fbc26105)
parent 3c8bb954
......@@ -117,6 +117,8 @@ NSString *const VLCMediaDiscovererCategory = @"VLCMediaDiscovererCategory";
{
[[VLCEventManager sharedManager] cancelCallToObject:self];
_discoveredMedia = nil;
if (_mdis) {
if (libvlc_media_discoverer_is_running(_mdis))
libvlc_media_discoverer_stop(_mdis);
......
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