[vlc-devel] commit: macosx gui: fix a playlist object leak. ( Rémi Duraffort )

git version control git at videolan.org
Wed Apr 1 20:03:05 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Apr  1 19:40:47 2009 +0200| [65797af88b5bebad9b5abcbbe6837106f18bd2f8] | committer: Rémi Duraffort 

macosx gui: fix a playlist object leak.

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

 modules/gui/macosx/applescript.m |   14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/modules/gui/macosx/applescript.m b/modules/gui/macosx/applescript.m
index 0099954..0f4a879 100644
--- a/modules/gui/macosx/applescript.m
+++ b/modules/gui/macosx/applescript.m
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * applescript.m: MacOS X AppleScript support
  *****************************************************************************
- * Copyright (C) 2002-2003, 2005, 2007-2008 the VideoLAN team
+ * Copyright (C) 2002-2009 the VideoLAN team
  * $Id$
  *
  * Authors: Derk-Jan Hartman <thedj at users.sourceforge.net>
@@ -69,7 +69,7 @@
                     noteNewRecentDocumentURL: o_url];
             }
         }
-        vlc_object_release( p_playlist );
+        pl_Release( p_intf );
     }
     return nil;
 }
@@ -103,45 +103,37 @@
         if ( [o_command isEqualToString:@"play"] )
         {
             [o_controls play:self];
-            return nil;
         }
         else if ( [o_command isEqualToString:@"stop"] )
         {
             [o_controls stop:self];
-            return nil;
         }
         else if ( [o_command isEqualToString:@"previous"] )
         {
             [o_controls prev:self];
-            return nil;
         }
         else if ( [o_command isEqualToString:@"next"] )
         {
             [o_controls next:self];
-            return nil;
         }
         else if ( [o_command isEqualToString:@"fullscreen"] )
         {
             [o_controls toogleFullscreen: self];
-            return nil;
         }
         else if ( [o_command isEqualToString:@"mute"] )
         {
             [o_controls mute:self];
-            return nil;
         }
         else if ( [o_command isEqualToString:@"volumeUp"] )
         {
             [o_controls volumeUp:self];
-            return nil;
         }
         else if ( [o_command isEqualToString:@"volumeDown"] )
         {
             [o_controls volumeDown:self];
-            return nil;
         }
     }
-    vlc_object_release( p_playlist );
+    pl_Release( p_intf );
     return nil;
 }
 




More information about the vlc-devel mailing list