[DF-2992] fix for texture memory leak