memory leaks in love.graphics.setFont()
The following code runs out of memory in the latest love (tip):
function love.draw() love.graphics.setFont(55) end }}}
I was able to patch the current love to fix the memory leak with the attached patch. The main problem seems to be the Font instance created in wrap_graphics.cpp is retained twice, but only released once, so the Font is never destructed. The same thing was happening with the Glyph class.
There still seems to be some memory related issue in this area even with the patch, as the tip is using ~20Mb more than 0.62. Without the setFont() call, the memory usage by tip and 0.62 is about the same.