5/22/2009
Object allocations / memory leak
I've been fighting this almost all day today. It seems like it's not deallocating my game object correctly. After every battle, my game allocates extra 1MB as you can see in the picture. My allocation is like a stairway. How do I fix this...
一日中苦戦。戦闘の1ラウンド終わるたんびに1MB分ぐらいのオブジェクトが階段のごとくallocateされてる。もはやこれまでかー!何があかんのかなぁ。
Subscribe to:
Post Comments (Atom)
how did you fix this????
ReplyDeleteJust be sure to release your object the same number of times you alloc or copy. If you have @property that has retain, then you release it in the dealloc method.
ReplyDeleteHere's a cool site that explains it:
http://cocoadevcentral.com/d/learn_objectivec/