Fixed some memory leaks

git-svn-id: http://svn.fmi-plovdiv.org/svn/students/0901261034/trunk/MTProject@10 12c2f946-5e95-4fc4-9837-bc5cc44074e2
Merge branch 'master' of github.com:ironsteel/dragonc