Commit 5995ceeb authored by Sebastien Zwickert's avatar Sebastien Zwickert Committed by Jean-Baptiste Kempf

Remove observer from the notification center in the dealloc method to prevent...

Remove observer from the notification center in the dealloc method to prevent a crash when notification center posts NSApplicationWillTerminateNotification and the VLAboutBox has already been released.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4a65401d
......@@ -61,6 +61,12 @@ static VLAboutBox *_o_sharedInstance = nil;
return _o_sharedInstance;
}
- (void) dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver: self];
[super dealloc];
}
/*****************************************************************************
* VLC About Window
*****************************************************************************/
......
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