소스 검색

VLCLibrary: do not retain libvlc instance after creation

libvlc_new creates an instance with a ref count of 1 which is sufficient here

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Shenggang Hu 10 년 전
부모
커밋
4400aea596
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      Sources/VLCLibrary.m

+ 0 - 2
Sources/VLCLibrary.m

@@ -94,8 +94,6 @@ static VLCLibrary * sharedLibrary = nil;
         paramNum++;
     }
     _instance = libvlc_new(count, lib_vlc_params);
-    if (_instance)
-        libvlc_retain(_instance);
 
     NSAssert(_instance, @"libvlc failed to initialize");
 }