فهرست منبع

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

Felix Paul Kühne 7 سال پیش
والد
کامیت
fbc26105cf
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      Sources/VLCMediaDiscoverer.m

+ 2 - 0
Sources/VLCMediaDiscoverer.m

@@ -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);