Browse Source

MacOSX/Framework/VLCLibrary.m: Fix an exception leak.

Pierre d'Herbemont 17 years ago
parent
commit
fde22e9f0e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Sources/VLCLibrary.m

+ 1 - 0
Sources/VLCLibrary.m

@@ -40,6 +40,7 @@ void __catch_exception( void * e, const char * function, const char * file, int
             reason:[NSString stringWithFormat:@"libvlc has thrown us an error: %s (%s:%d %s)", 
                 libvlc_exception_get_message( ex ), file, line_number, function]
             userInfo:nil];
+        libvlc_exception_clear( ex );
         @throw libvlcException;
     }
 }