Fix memory peak on app launch.