here's an idea: when an apple lands on the spot where one already resides simply add 1 to the latter's count and despawn the former, there are only so many places where they can land so this should (in theory) keep memory usage in check.
yeah, that's a good way of solving this, I doubt i'll be updating it though since it was a Ludum Dare entry and i like to keep them in all their broken glory. :P
Maybe one day I'll revise all of them and make a compilation or something.