[vlc-commits] macosx: fix destruction of bookmarks window, simplify

David Fuhrmann git at videolan.org
Sat Jul 11 14:52:10 CEST 2015


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Jul 11 14:51:42 2015 +0200| [78da9487ed8692fead7dc263dd4b07f0c55b4086] | committer: David Fuhrmann

macosx: fix destruction of bookmarks window, simplify

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=78da9487ed8692fead7dc263dd4b07f0c55b4086
---

 modules/gui/macosx/intf.m |   19 +++++--------------
 1 file changed, 5 insertions(+), 14 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index e127e62..9efc4bb 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -779,22 +779,13 @@ static VLCMain *_o_sharedMainInstance = nil;
 
     /* release some other objects here, because it isn't sure whether dealloc
      * will be called later on */
-    if (o_sprefs)
-        [o_sprefs release];
-
-    if (o_prefs)
-        [o_prefs release];
+    [o_sprefs release];
+    [o_prefs release];
 
     [o_open release];
-
-    if (o_info)
-        [o_info release];
-
-    if (o_wizard)
-        [o_wizard release];
-
-    if (!o_bookmarks)
-        [o_bookmarks release];
+    [o_info release];
+    [o_wizard release];
+    [o_bookmarks release];
 
     [o_resume_dialog release];
 



More information about the vlc-commits mailing list