Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions NativeScript/runtime/Timers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,8 @@ class TimerState {
it->second->Unschedule();
timerMap_.erase(it);
CFRunLoopTimerInvalidate(timer);
// timer and context will be released by the retain function
// CFRunLoopTimerContext context;
// CFRunLoopTimerGetContext(timer, &context);
// delete static_cast<std::shared_ptr<TimerTask>*>(context.info);
// CFRelease(timer);
// CFRunLoopTimerInvalidate triggers our TimerRelease callback, which
// deletes TimerContext, whose destructor calls CFRelease(task->timer)
}
}

Expand Down
Loading