Cocos2DXNA / cocos2d-xna

XNA Port of Cocos2d-X
www.cocos2dxna.com
227 stars 123 forks source link

Possible memory leak in CCLabelBMFont + Monogame + WP8 #414

Closed totallyeviljake closed 10 years ago

totallyeviljake commented 10 years ago

From: https://cocos2dxna.codeplex.com/discussions/544032

Looks like the texture atlas for the CCLabelBMFont is not being released properly in MonoGame. Could be a poorly managed weak reference.

totallyeviljake commented 10 years ago

memory_analysis_bmfont

totallyeviljake commented 10 years ago

I did not see a memory leak when I ran my test case in the simulator.

totallyeviljake commented 10 years ago

wp8_memtest2

totallyeviljake commented 10 years ago

I also tried it with the ctor that you are using and still I am not seeing any memory leaks.

totallyeviljake commented 10 years ago

I am not able to reproduce any memory leak with CCLabelBMFont.