Pārlūkot izejas kodu

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

Pierre d'Herbemont 17 gadi atpakaļ
vecāks
revīzija
fde22e9f0e
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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;
     }
 }