fixed memory leaks in result struct

git-svn-id: https://roadrunnerlib.googlecode.com/svn/branches/refactor_modelgen@946 c0027639-9190-0b57-01eb-f09a03790dae
synced up with Totte\'s changes

git-svn-id: https://roadrunnerlib.googlecode.com/svn/branches/refactor_modelgen@947 c0027639-9190-0b57-01eb-f09a03790dae
synced up with Totte\'s changes

git-svn-id: https://roadrunnerlib.googlecode.com/svn/branches/refactor_modelgen@948 c0027639-9190-0b57-01eb-f09a03790dae