libgimpbase: fix memleak