don't leak memory
whoopsie! :)
don't leak memory once more
don't leak some more memory
avoid double-free (NULL is ok to pass to g_free - no-op)
second whoopsie, probably a matter of copy/paste
fix my own copy/paste error
Merge pull request #86 from monsta/fixes

Fix some leaks and other things