Memory leaks in demo project have been fixed;