Working listView and memory management.

Now it deletes everything in memory correctly. Hopefully there are no
memory leaks.
Weird stuff going on.
Merge branch 'develop' of https://github.com/Zo0MER/graph_editor into develop

Conflicts:
	mainwindow.ui