Strip surplus g_object_ref/g_object_unref pair