Fix wrong usage of g_object_unref() in