[epiphany] 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] Fix crash when we can't connect to the session bus
- Date: Thu, 12 Feb 2015 17:32:38 +0000 (UTC)
commit bfdc746d0987b1561395e9eccd69102b0ef46587
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 09491f9..3a46fd0 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -527,12 +527,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]