Removed memory leak from SMAP app