mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 01:25:39 +00:00
Use local variable instead of reusing the field.
This commit is contained in:
parent
b0e7465f6c
commit
77bca92a02
|
@ -16,8 +16,8 @@ namespace OpenTK.Platform.MacOS
|
|||
/// </summary>
|
||||
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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in a new issue