Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no dealloc in iphone SDK 5.1 #50

Closed
sivansethu opened this issue May 18, 2012 · 1 comment
Closed

no dealloc in iphone SDK 5.1 #50

sivansethu opened this issue May 18, 2012 · 1 comment

Comments

@sivansethu
Copy link

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

@mysteriouss
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants