The memory always increase in the custom state of demo project, when you enter and exit again and again.