advertisement

Article:
  Animating Graphics in Cocoa, Part 1
Subject:   Memory leak
Date:   2003-03-26 18:05:02
From:   anonymous2
This example contains a memory leak.
Each iteration of the animation creates a new NSDate object that is never released.
Something like this is requires:


NSDate *run_time;


run_time = [NSDate dateWithTimeIntervalSinceNow:0.04];
[NSThread sleepUntilDate:run_time];
[Run_time release];



1 to 1 of 1
  1. Memory leak
    2003-08-22 15:18:45  anonymous2 [View]

    • Memory leak
      2005-07-29 18:28:09  valiantsoul [View]

      • Memory leak
        2005-07-29 18:39:01  valiantsoul [View]

1 to 1 of 1