From: RĂ©mi Denis-Courmont Date: Sun, 22 Feb 2009 08:06:47 +0000 (+0200) Subject: Do not leak native exception through our API users. X-Git-Tag: 1.0.0-pre1~498 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=f21526f2bfec92043ccc36047152995c750ff6ff;p=vlc Do not leak native exception through our API users. Native exception are not completely safe, mostly because the memory is managed but not the content. --- diff --git a/bindings/cil/src/marshal.cs b/bindings/cil/src/marshal.cs index 439d849ed1..dfb8180e42 100644 --- a/bindings/cil/src/marshal.cs +++ b/bindings/cil/src/marshal.cs @@ -74,8 +74,8 @@ namespace VideoLAN.LibVLC */ public class BaseObject : IDisposable { - protected NativeException ex; /**< buffer for LibVLC exceptions */ - protected SafeHandle handle; /**< wrapped safe handle */ + internal NativeException ex; /**< buffer for LibVLC exceptions */ + internal SafeHandle handle; /**< wrapped safe handle */ internal BaseObject () { @@ -87,7 +87,7 @@ namespace VideoLAN.LibVLC * Checks if the LibVLC run-time raised an exception * If so, raises a CIL exception. */ - protected void Raise () + internal void Raise () { ex.Raise (); }