Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Missing something fundamental

Missing something fundamental

darkpegasus
darkpegasus
Data Spire · · 1 min read
1,297 0
I was hoping someone here might be able to shed some light on a problem that I've been having. At first I thought it was a simple memory management issue on my part; not performing alloc/release correctly. I went through and corrected all of the obvious leaks but now seem to be stuck on a different problem.

The image below shows something I took out of Instruments when looking at the objects allocated. For some reason, every time I remove all views from superview and add a new one the memory goes up by .05 to .1 MB. Doesn't removeFromSuperview automatically free this up if I released the object after adding it?

I also send messages back and forth between a couple of classes and it looks like the objc_msgSend eats up some memory but I don't know how to get rid of this. It's most noticeable within the PurpleEventTimerCallBack.

Discussion

Loading comments...