Commit f21526f2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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.
parent 98743759
...@@ -74,8 +74,8 @@ namespace VideoLAN.LibVLC ...@@ -74,8 +74,8 @@ namespace VideoLAN.LibVLC
*/ */
public class BaseObject : IDisposable public class BaseObject : IDisposable
{ {
protected NativeException ex; /**< buffer for LibVLC exceptions */ internal NativeException ex; /**< buffer for LibVLC exceptions */
protected SafeHandle handle; /**< wrapped safe handle */ internal SafeHandle handle; /**< wrapped safe handle */
internal BaseObject () internal BaseObject ()
{ {
...@@ -87,7 +87,7 @@ namespace VideoLAN.LibVLC ...@@ -87,7 +87,7 @@ namespace VideoLAN.LibVLC
* Checks if the LibVLC run-time raised an exception * Checks if the LibVLC run-time raised an exception
* If so, raises a CIL exception. * If so, raises a CIL exception.
*/ */
protected void Raise () internal void Raise ()
{ {
ex.Raise (); ex.Raise ();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment