We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
NSAutoreleasePool.Init()
1 parent 7249d66 commit 018fb73Copy full SHA for 018fb73
osu.Framework/Platform/Apple/Native/NSAutoreleasePool.cs
@@ -2,6 +2,7 @@
2
// See the LICENCE file in the repository root for full licence text.
3
4
using System;
5
+using JetBrains.Annotations;
6
7
namespace osu.Framework.Platform.Apple.Native
8
{
@@ -19,6 +20,7 @@ internal NSAutoreleasePool(IntPtr handle)
19
20
private static readonly IntPtr sel_init = Selector.Get("init");
21
private static readonly IntPtr sel_drain = Selector.Get("drain");
22
23
+ [MustDisposeResource]
24
public static NSAutoreleasePool Init()
25
=> new NSAutoreleasePool(Interop.SendIntPtr(Interop.SendIntPtr(class_pointer, sel_alloc), sel_init));
26
0 commit comments