]> git.sesse.net Git - vlc/commitdiff
Do not leak native exception through our API users.
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 22 Feb 2009 08:06:47 +0000 (10:06 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 22 Feb 2009 08:06:47 +0000 (10:06 +0200)
Native exception are not completely safe, mostly because the memory is
managed but not the content.

bindings/cil/src/marshal.cs

index 439d849ed1ed85c307696671336e2bdb04e7b340..dfb8180e42c59278a6c42717fdadfb920d863049 100644 (file)
@@ -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 ();
         }