fixed potential leaks in non-ARC projects