Page 2 of 2

Re: [0.10.2] love.math.compress/decompress seems to be leaking memory

Posted: Fri Mar 02, 2018 8:02 pm
by slime
For reference, if you need to use love.math.compress in 0.10.2 and want to fix the memory leak in love's source:

in the w_compress function in src/modules/math/wrap_Math.cpp, add

Code: Select all

cdata->release();
below the luax_pushtype(L, MATH_COMPRESSED_DATA_ID, cdata); call and above the 'return 1;'.

Re: [0.10.2] love.math.compress/decompress seems to be leaking memory

Posted: Fri Mar 02, 2018 8:28 pm
by Whatthefuck
Thanks a lot!