Continual allocation of NSDate objects in [AudioPlayer startInterval]



Hi Thong,

The following line in the startInterval method of the AudioPlayer module causes a continually increasing number of NSDate objects to be allocated. The auto-release pool which wraps this code doesn't drain frequently enough and my application's memory footprint continued to grow by roughly a megabyte every 5 minutes.

    [playbackThreadRunLoop runMode:NSDefaultRunLoopMode
                        beforeDate:[NSDate dateWithTimeIntervalSinceNow:10]];

One solution would be to drain the pool manually after each iteration of the while loop or change the above line to the following, which I have done in this pull request.

    NSDate *date = [[NSDate alloc] initWithTimeIntervalSinceNow:10];
    [playbackThreadRunLoop runMode:NSDefaultRunLoopMode beforeDate:date];

Cheers