title: Cocos2d-iPhone: "update" called after dealloc
body: <p>So I have a subclass of a CCSprite object, and in its init method, I call: </p>
  
  <pre><code>[self scheduleUpdate]
  </code></pre>
  
  <p>I later release this object from its parent CCNode like so:</p>
  
  <pre><code>[self removeChild:sprite cleanup:YES];
  </code></pre>
  
  <p>In addition, I call [self unscheduleUpdate] in the sprite's dealloc method.</p>
  
  <p>However, I'm getting a bad memory access, so it appears that the update method is still attempted after the object is released (I've narrowed it down to this, as it works perfectly if I comment out the [self scheduleUpdate] line.</p>
  
  <p>Any ideas?</p>