浏览代码

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;
     }
 }