alibaba / wax

Wax is a framework that lets you write native iPhone apps in Lua.
http://github.com/probablycorey/wax
MIT License
1.84k stars 280 forks source link

is there any memory leak when using wax.struct #58

Open dourgulf opened 7 years ago

dourgulf commented 7 years ago

I wrote a test code like this:

function test() 
    local r = CGRect(1,1,2,2);
end
test();

and debug in createClosure method, wax_struct_userdata *structUserdata will allocate some memory. but the __gc breakpoint never reached. is it a leak? or I had make a mistake?