Skip to content
Snippets Groups Projects
Commit d22daeb7 authored by Claudio Cambra's avatar Claudio Cambra Committed by Steve Lhomme
Browse files

macosx: Fix crash upon dealloc of VLCLibraryWindow


Caused by trying to remove KVO when none was added

Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent d3c65e6b
No related branches found
No related tags found
1 merge request!6143macosx: Fix crash upon dealloc of VLCLibraryWindow
Pipeline #521810 passed with stages
in 29 minutes and 10 seconds
......@@ -194,10 +194,6 @@ static void addShadow(NSImageView *__unsafe_unretained imageView)
- (void)dealloc
{
[NSNotificationCenter.defaultCenter removeObserver:self];
if (@available(macOS 10.14, *)) {
[NSApplication.sharedApplication removeObserver:self forKeyPath:@"effectiveAppearance"];
}
libvlc_int_t *libvlc = vlc_object_instance(getIntf());
var_DelCallback(libvlc, "intf-toggle-fscontrol", ShowFullscreenController, (__bridge void *)self);
var_DelCallback(libvlc, "intf-show", ShowController, (__bridge void *)self);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment