using utility safe methods
fixed memory leak
Authored by: matzon 2004-10-23
Parent: [r1523]
Child: [r1525]