Fixed one potential memory leak, and re-remembered that for GLib + valgrind you REALLY need to set G_SLICE=always-malloc. Argh!