clean code... fixed several memory leak

Using Mac OS X Instruments software…
GG 398