Commit 4ad2f8dc authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Make sure the o_info object gets released even if the nib has not been loaded.

parent a3694386
...@@ -93,6 +93,7 @@ struct intf_sys_t ...@@ -93,6 +93,7 @@ struct intf_sys_t
* VLCMain interface * VLCMain interface
*****************************************************************************/ *****************************************************************************/
@class AppleRemote; @class AppleRemote;
@class VLCInformation;
@interface VLCMain : NSObject @interface VLCMain : NSObject
{ {
intf_thread_t *p_intf; /* The main intf object */ intf_thread_t *p_intf; /* The main intf object */
...@@ -105,7 +106,7 @@ struct intf_sys_t ...@@ -105,7 +106,7 @@ struct intf_sys_t
id o_bookmarks; /* VLCBookmarks */ id o_bookmarks; /* VLCBookmarks */
id o_embedded_list; /* VLCEmbeddedList*/ id o_embedded_list; /* VLCEmbeddedList*/
id o_interaction_list; /* VLCInteractionList*/ id o_interaction_list; /* VLCInteractionList*/
id o_info; /* VLCInformation */ VLCInformation * o_info; /* VLCInformation */
#ifdef UPDATE_CHECK #ifdef UPDATE_CHECK
id o_update; /* VLCUpdate */ id o_update; /* VLCUpdate */
#endif #endif
......
...@@ -1751,9 +1751,9 @@ end: ...@@ -1751,9 +1751,9 @@ end:
if( nib_bookmarks_loaded ) if( nib_bookmarks_loaded )
[o_bookmarks release]; [o_bookmarks release];
if( nib_info_loaded ) if( o_info )
{ {
[o_info stop]; [o_info stopTimers];
[o_info release]; [o_info release];
} }
......
...@@ -102,6 +102,8 @@ ...@@ -102,6 +102,8 @@
} }
- (void)initPanel; - (void)initPanel;
- (void)stopTimers;
- (IBAction)metaFieldChanged:(id)sender; - (IBAction)metaFieldChanged:(id)sender;
- (IBAction)saveMetaData:(id)sender; - (IBAction)saveMetaData:(id)sender;
- (void)initMediaPanelStats; - (void)initMediaPanelStats;
......
...@@ -119,7 +119,7 @@ static VLCInfo *_o_sharedInstance = nil; ...@@ -119,7 +119,7 @@ static VLCInfo *_o_sharedInstance = nil;
[self updatePanelWithItem:p_item]; [self updatePanelWithItem:p_item];
} }
- (void)stop - (void)stopTimers
{ {
/* make sure that the timer is released in any case */ /* make sure that the timer is released in any case */
if( o_statUpdateTimer && [o_statUpdateTimer isValid] ) if( o_statUpdateTimer && [o_statUpdateTimer isValid] )
......
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