<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takujidev</author_name>
  <author_url>https://blog.hatena.ne.jp/takujidev/</author_url>
  <blog_title>夏までにiPhone アプリつくってみっか！</blog_title>
  <blog_url>https://tf.hateblo.jp/</blog_url>
  <categories>
    <anon>cocos2d</anon>
  </categories>
  <description>あるオブジェクトのdeallocが突然呼ばれなくなりデバッグに数時間かかってしまいました！ノードAのCCCallFuncで別のノードBのメソッドを実行する場合、おそらくノードAはノードBをリテインするんですね。知りませんでした。 CCCallFuncはCCRepeatForeverの中で繰り返し呼ばれる設定になっていたのでおそらくずっとリテインしっぱなしになっていました。 このため、ノードBが親ノードから外れてもdealloc呼ばれなくなってしまいました。 ノードBが親から外れる前にStopAllActionsでノードAのアクションを止めてあげる事で無事問題は解決し、deallocが呼ばれるよ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftf.hateblo.jp%2Fentry%2F2013%2F05%2F01%2F235217&quot; title=&quot;【cocos2d】CCCallFuncで予想外のリテイン発生？ハマった件 - 夏までにiPhone アプリつくってみっか！&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-05-01 23:52:17</published>
  <title>【cocos2d】CCCallFuncで予想外のリテイン発生？ハマった件</title>
  <type>rich</type>
  <url>https://tf.hateblo.jp/entry/2013/05/01/235217</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
