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

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
slime
Solid Snayke
Posts: 2899
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

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

Post by slime » 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

Code: Select all

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

Whatthefuck
Party member
Posts: 106
Joined: Sat Jun 21, 2014 3:45 pm

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

Post by Whatthefuck » Fri Mar 02, 2018 8:28 pm

Thanks a lot!

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests