Ensure the memory clearing function is called.
Merge pull request #76 from mindsnacks/fix/texture-memory

[FINAL] Ensure the memory clearing function is called.