If you're calling that, are you also setting it to nothing? Creating many classes will increase memory, as mentioned