Fix memory leak introduced in texture compression merge