]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/interaction.m
* collection of various fixes and edits
[vlc] / modules / gui / macosx / interaction.m
index eef2a52d512100bc76f99112d52485a3335ffd2f..9c5e4a264e4d1fd3dced8a4f0cb44dc71e9dcfd2 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * interaction.h: Mac OS X interaction dialogs
  *****************************************************************************
- * Copyright (C) 2005-2006 the VideoLAN team
+ * Copyright (C) 2005-2007 the VideoLAN team
  * $Id$
  *
  * Authors: Derk-Jan Hartman <hartman at videolan dot org>
     return o_error_panel;
 }
 
+#if GC_ENABLED
+-(void)finalize
+{
+       /* dealloc doesn't get called on 10.5 if GC is enabled, so we need to provide the basic functionality here */
+       [[NSNotificationCenter defaultCenter] removeObserver:self];
+       [o_interaction_list removeAllObjects];
+    [super finalize];
+}
+#endif
+
 -(void)dealloc
 {
     [[NSNotificationCenter defaultCenter] removeObserver:self];