formotion icon indicating copy to clipboard operation
formotion copied to clipboard

Remove use of &/to_proc syntactic sugar since it causes RubyMotion to leak

Open jdewind opened this issue 12 years ago • 3 comments
trafficstars

I've submitted the issue with the RubyMotion team and I'm sure they'll look into it and address it. Until then this pull request removes the use of the &/to_proc syntactic sugar as it causes a malloc leak in the underlying RubyMotion code.

It leaks 16 bytes each time sub_render is called. Admittedly, that isn't too much. But, it is still a leak.

jdewind avatar Oct 11 '13 11:10 jdewind

Wow, that's surprising. Good call!

Do you have a link to the HipByte ticket!?

clayallsopp avatar Oct 11 '13 14:10 clayallsopp

*didnt mean ?!, just ?.

clayallsopp avatar Oct 11 '13 14:10 clayallsopp

@clayallsopp

They haven't created an issue for it yet. I will post it when it is available and then decide whether to merge at this point. :-)

jdewind avatar Oct 11 '13 15:10 jdewind