Error values are not checked here, so commenting them out to avoid static analyzer warning
Don't leak CoreFoundation objects
Autorelease this view
Don't write to freed memory
If inTimeInTicks == 0, theTimeInTicks is updated from the interrupt manager, but this value is never used -- only inTimeInTicks is
Fixes memory leak, malloc(0) (considered compiler-dependent, non-portable), and use of uninitialized values