The caller is responsible fro freeing GError objects. That g_error_free() call was missing in two places.
Attach a file by drag & drop or click to upload