[gnome-software] shell search provider: Release the GApplication in dispose
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] shell search provider: Release the GApplication in dispose
- Date: Tue, 3 Jun 2014 11:14:03 +0000 (UTC)
commit 3880130541c90c9ff59dcabd9ff83a879b50b4ee
Author: Kalev Lember <kalevlember gmail com>
Date: Tue Jun 3 12:57:33 2014 +0200
shell search provider: Release the GApplication in dispose
... not in the search_provider_bus_acquired_cb callback. This ensures
the session service stays alive while the shell search provider is
running.
src/gs-shell-search-provider.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-shell-search-provider.c b/src/gs-shell-search-provider.c
index 438e56b..3448392 100644
--- a/src/gs-shell-search-provider.c
+++ b/src/gs-shell-search-provider.c
@@ -345,8 +345,6 @@ search_provider_bus_acquired_cb (GDBusConnection *connection,
connection,
"/org/gnome/Software/SearchProvider", NULL);
g_dbus_object_manager_server_set_connection (self->object_manager, connection);
-
- g_application_release (g_application_get_default ());
}
static void
@@ -369,6 +367,7 @@ search_provider_dispose (GObject *obj)
g_clear_object (&self->cancellable);
g_hash_table_destroy (self->metas_cache);
cancel_current_search (self);
+ g_application_release (g_application_get_default ());
G_OBJECT_CLASS (gs_shell_search_provider_parent_class)->dispose (obj);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]