Fixed some memory problems reported by valgrind.
Merge branch 'master' of github.com:supertuxkart/stk-code