From 6dda84dc775fbf621acfd1eb8df94462aa753a77 Mon Sep 17 00:00:00 2001 From: Fraser Waters Date: Sun, 22 Jun 2014 20:38:10 +0100 Subject: [PATCH] Change to correct throw statement to preserve stack trace. --- Source/OpenTK/BindingsBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/BindingsBase.cs b/Source/OpenTK/BindingsBase.cs index 7ea697f0..8043f4e6 100644 --- a/Source/OpenTK/BindingsBase.cs +++ b/Source/OpenTK/BindingsBase.cs @@ -211,7 +211,7 @@ namespace OpenTK Marshal.WriteIntPtr(ptr, i * IntPtr.Size, str); } } - catch (OutOfMemoryException oom) + catch (OutOfMemoryException) { for (i = i - 1; i >= 0; --i) { @@ -220,7 +220,7 @@ namespace OpenTK Marshal.FreeHGlobal(ptr); - throw oom; + throw; } } return ptr;