[epiphany/gnome-3-14] Fix crash when we can't connect to the session bus
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-14] Fix crash when we can't connect to the session bus
- Date: Thu, 12 Feb 2015 18:37:34 +0000 (UTC)
commit 7fd59fa5909e6fb5b87e9d216cbd0cb94ddecf61
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Wed Feb 11 16:37:16 2015 -0600
Fix crash when we can't connect to the session bus
This GError is never initialized. g_application_get_dbus_connection()
does not take a GError.
https://bugzilla.gnome.org/show_bug.cgi?id=744360
embed/ephy-embed-shell.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index 360bffd..e5f447a 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -525,12 +525,9 @@ initialize_web_extensions (WebKitWebContext* web_context,
static void
ephy_embed_shell_setup_web_extensions_connection (EphyEmbedShell *shell)
{
- GError *error = NULL;
-
shell->priv->bus = g_application_get_dbus_connection (G_APPLICATION (shell));
if (!shell->priv->bus) {
- g_warning ("Application not connected to session bus: %s\n", error->message);
- g_error_free (error);
+ g_warning ("Application not connected to session bus");
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]