[epiphany] web-extension: Fix D-Bus connection after autoptr conversion
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] web-extension: Fix D-Bus connection after autoptr conversion
- Date: Sat, 2 Mar 2019 03:41:29 +0000 (UTC)
commit d7b732b0b0948648d984b6d18b133e40ef434865
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Fri Mar 1 21:38:35 2019 -0600
web-extension: Fix D-Bus connection after autoptr conversion
Code changes are dangerous. In 8e1c71ff50d185c11d7f047427c27048c9fcdfa5
I messed up and caused the web extension's GDBusConnection to be
immediately destroyed after successfully connecting to the UI process.
Oops. I discovered this so quickly only by chance, because I happened to
be debugging a password manager issue.
embed/web-extension/ephy-web-extension.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index 50d57639f..6c7e5d494 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -587,7 +587,7 @@ dbus_connection_created_cb (GObject *source_object,
return;
}
- extension->dbus_connection = connection;
+ extension->dbus_connection = g_steal_pointer (&connection);
ephy_web_extension_emit_page_created_signals_pending (extension);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]