Commit 4400aea5 authored by Shenggang Hu's avatar Shenggang Hu Committed by Felix Paul Kühne

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's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent b995aaa5
......@@ -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");
}
......
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