Use local variable instead of reusing the field.
This commit is contained in:
parent
b0e7465f6c
commit
77bca92a02
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ namespace OpenTK.Platform.MacOS
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public NSAutoreleasePool()
|
public NSAutoreleasePool()
|
||||||
{
|
{
|
||||||
_autoreleasePool = Cocoa.SendIntPtr(Class.NSAutoreleasePool, Selector.Alloc);
|
var uninitializedPool = Cocoa.SendIntPtr(Class.NSAutoreleasePool, Selector.Alloc);
|
||||||
_autoreleasePool = Cocoa.SendIntPtr(_autoreleasePool, Selector.Init);
|
_autoreleasePool = Cocoa.SendIntPtr(uninitializedPool, Selector.Init);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in a new issue