소스 검색

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

Pierre d'Herbemont 17 년 전
부모
커밋
fde22e9f0e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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;
     }
 }