diff --git a/src/OpenTK/Platform/MacOS/Cocoa/NSAutoreleasePool.cs b/src/OpenTK/Platform/MacOS/Cocoa/NSAutoreleasePool.cs index 074e65a8..e6ba6c42 100644 --- a/src/OpenTK/Platform/MacOS/Cocoa/NSAutoreleasePool.cs +++ b/src/OpenTK/Platform/MacOS/Cocoa/NSAutoreleasePool.cs @@ -16,8 +16,8 @@ namespace OpenTK.Platform.MacOS /// public NSAutoreleasePool() { - _autoreleasePool = Cocoa.SendIntPtr(Class.NSAutoreleasePool, Selector.Alloc); - _autoreleasePool = Cocoa.SendIntPtr(_autoreleasePool, Selector.Init); + var uninitializedPool = Cocoa.SendIntPtr(Class.NSAutoreleasePool, Selector.Alloc); + _autoreleasePool = Cocoa.SendIntPtr(uninitializedPool, Selector.Init); } ///