memory leak fixes

git-svn-id: https://roadrunnerlib.googlecode.com/svn/branches/develop@1002 c0027639-9190-0b57-01eb-f09a03790dae
fixed long standing and very pesky memory leaks

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