From f21526f2bfec92043ccc36047152995c750ff6ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 22 Feb 2009 10:06:47 +0200 Subject: [PATCH] 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. --- bindings/cil/src/marshal.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 (); } -- 2.39.2