[vlc-devel] commit: Do not leak native exception through our API users. ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Feb 22 09:56:58 CET 2009
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Feb 22 10:06:47 2009 +0200| [f21526f2bfec92043ccc36047152995c750ff6ff] | committer: 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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f21526f2bfec92043ccc36047152995c750ff6ff
---
bindings/cil/src/marshal.cs | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/bindings/cil/src/marshal.cs b/bindings/cil/src/marshal.cs
index 439d849..dfb8180 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 ();
}
More information about the vlc-devel
mailing list