Fix memory leak

CID #16853
Fix memory leak

CID #16864
delete -> gfree since it was gmaloced

CID #16785
gfree -> delete since it was new'ed

CID #16786
Fix Uninitialized pointer read when nFucnsA is 0

CID #16965
Fix memory leak

Don't pass new'ed GooStrings as parameters to error()

CID #16915
Fix Out-of-bounds read

CID #16844
Fix memory leak

CID #16852
Don't check twice for the same variable ^_^

CID #16804
Fix memory leak

CID #16943