Release texture memory.