Update TSArray.h

Memory cleanup