Improved typemaker2 tool.
Improved typemaker2 tool.

This fixes memory leaks in auto-generated code.

git-svn-id: a739a095880fa3ebc46f89d9df64e20166cf4ba9@1995 70169cfe-8b10-0410-8925-dcb4b91034d8

sttts/gwenhywfar,sttts/gwenhywfar,sttts/gwenhywfar