probablycorey/wax

no dealloc in iphone SDK 5.1

Closed this issue · 1 comments

I have verified with allocation profille in xcode 4.2.3 and found that object created through wax lua did not get cleared even after wax gc cleared those object. How to fix this issue

Regards
Sethu

Something goes wrong, so I gave up the NSTimer GC and manage the memory by myself.
Delete [wax_gc start] and [wax_gc stop]; in wax.m
Delete [instanceUserdata->instance retain];
if (!isClass) {//[instanceUserdata->instance retain];} in wax_instance.m in method wax_instance_userdata *wax_instance_create(lua_State *L, id instance, BOOL isClass) and
// [instanceUserdata->instance release]; in method static int __gc(lua_State *L)