Have you updated your draw() function so that it doesn’t create a new texture and font each time it’s called? If it’s still the same as before then you are only freeing the last texture and font that you created. The ones you created earlier are “leaked”.
It’s of course also possible that there are other memory leaks in the code that you haven’t shown (e.g. in getTextRect
).