Re: [0.10.2] love.math.compress/decompress seems to be leaking memory
Posted: Fri Mar 02, 2018 8:02 pm
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
below the luax_pushtype(L, MATH_COMPRESSED_DATA_ID, cdata); call and above the 'return 1;'.
in the w_compress function in src/modules/math/wrap_Math.cpp, add
Code: Select all
cdata->release();