Fix a couple of memory leaks as reported by valgrind
Fix bug in  hasTrack()
Update version number to 0.13.0