This fix also a crash because of a non joined thread on Mac OS X.
/* remove global observer watching for vout device changes correctly */
[[NSNotificationCenter defaultCenter] removeObserver: self];
+ [o_update end];
+
/* release some other objects here, because it isn't sure whether dealloc
* will be called later on */
bool b_checked;
}
+- (void)end;
+
- (IBAction)download:(id)sender;
- (IBAction)okay:(id)sender;
- (IBAction)changeCheckUpdateOnStartup:(id)sender;
return _o_sharedInstance;
}
+- (void)end
+{
+ if( p_u ) update_Delete( p_u );
+}
+
- (void)awakeFromNib
{
/* we don't use - (BOOL)shouldCheckUpdateOnStartup because we don't want
assert( !p_update->p_download );
vlc_object_kill( p_update->p_check );
vlc_thread_join( p_update->p_check );
+ vlc_object_release( p_update->p_check );
}
else if( p_update->p_download )
{