Skip to content
Browse files

Change to correct throw statement to preserve stack trace.

  • Loading branch information...
1 parent 381c34d commit 6dda84dc775fbf621acfd1eb8df94462aa753a77 @Frassle Frassle committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/OpenTK/BindingsBase.cs
View
4 Source/OpenTK/BindingsBase.cs
@@ -211,7 +211,7 @@ protected static IntPtr MarshalStringArrayToPtr(string[] str_array)
Marshal.WriteIntPtr(ptr, i * IntPtr.Size, str);
}
}
- catch (OutOfMemoryException oom)
+ catch (OutOfMemoryException)
{
for (i = i - 1; i >= 0; --i)
{
@@ -220,7 +220,7 @@ protected static IntPtr MarshalStringArrayToPtr(string[] str_array)
Marshal.FreeHGlobal(ptr);
- throw oom;
+ throw;
}
}
return ptr;

0 comments on commit 6dda84d

Please sign in to comment.
Something went wrong with that request. Please try again.