We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 966b5de commit b14392eCopy full SHA for b14392e
NativeScript/runtime/Timers.cpp
@@ -65,11 +65,8 @@ class TimerState {
65
it->second->Unschedule();
66
timerMap_.erase(it);
67
CFRunLoopTimerInvalidate(timer);
68
- // timer and context will be released by the retain function
69
- // CFRunLoopTimerContext context;
70
- // CFRunLoopTimerGetContext(timer, &context);
71
- // delete static_cast<std::shared_ptr<TimerTask>*>(context.info);
72
- // CFRelease(timer);
+ // CFRunLoopTimerInvalidate triggers our TimerRelease callback, which
+ // deletes TimerContext, whose destructor calls CFRelease(task->timer)
73
}
74
75
0 commit comments