[I] improve the memory management in app