fixed memory leak for non ARC projects