retry fix memory leakage through cocos/pyglet