From 7fd59fa5909e6fb5b87e9d216cbd0cb94ddecf61 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Wed, 11 Feb 2015 16:37:16 -0600 Subject: 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 file changed, 1 insertion(+), 4 deletions(-) diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c index 360bffdd7..e5f447a72 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; } -- cgit v1.2.1