Fix (probably not possible) memory leak.
I dunno what this will help, but it's bad practice not to have it
anyways.
Warnings, warnings everywhere.
Most of them caused by GCC options. They probably wouldn't cause a
problem, but someone must've enabled those warnings for a reason.