Fix delete of malloc'ed memory
Fix uninit vars in gui
More uninitialized variables
Fix read past end of array
Fix more misc uninitialized vars
Fix use-after-delete errors
Fix more use-after-delete errors
Fix use-after-delete
Replace obsolete calling convention
Fix buffer overflow
Casts are stronger than necessary
Fix uninitialized member vars
Fix mismatched free

Memory was allocated with new on line 304
Fix leaked member var
Fix potential buffer overflows
Merge pull request #8 from bpay/memfixes

Memfixes