cppcheck: Fixed memory leaks in importmusicxml
cppcheck: minor pointer dereference fixes