const gchar *search_string,
guint timestamp)
{
- GVariant *value;
+ GVariant *value, *value2;
const gchar *owner;
GVariantBuilder builder;
GError *error = NULL;
g_variant_builder_add (&builder, "u", timestamp);
- value = g_dbus_connection_invoke_method_sync
+ value2 = g_dbus_connection_invoke_method_sync
(application->connection,
owner,
APPLICATION_DBUS_OBJECT_PATH,
-1,
NULL,
&error);
- if (value == NULL) {
+ if (value2 == NULL) {
g_warning ("%s", error->message);
g_error_free (error);
}
g_variant_unref (value);
+ g_variant_unref (value2);
/* Do not continue opening this document */
return FALSE;
g_dbus_node_info_unref (introspection_data);
g_list_foreach (ev_daemon_docs, (GFunc)ev_doc_free, NULL);
g_list_free (ev_daemon_docs);
+ g_object_unref (connection);
return 0;
}