Skip to content

Commit 4684d9e

Browse files
authored
Create an autorelease pool for every render timer tick (#17414)
1 parent 680a5e2 commit 4684d9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

native/Avalonia.Native/src/OSX/PlatformRenderTimer.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ virtual bool RunsInBackground () override
7272

7373
static CVReturn OnTick(CVDisplayLinkRef displayLink, const CVTimeStamp *inNow, const CVTimeStamp *inOutputTime, CVOptionFlags flagsIn, CVOptionFlags *flagsOut, void *displayLinkContext)
7474
{
75+
START_ARP_CALL;
7576
PlatformRenderTimer *object = (PlatformRenderTimer *)displayLinkContext;
7677
object->_callback->Run();
7778
return kCVReturnSuccess;

0 commit comments

Comments
 (0)