[epiphany] view-source-handler: requests must now keep alive the handler
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] view-source-handler: requests must now keep alive the handler
- Date: Wed, 2 Nov 2016 00:30:38 +0000 (UTC)
commit 238d301d267b25bffc8f52dbce2cef70e38725bb
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Tue Nov 1 19:30:09 2016 -0500
view-source-handler: requests must now keep alive the handler
embed/ephy-view-source-handler.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-view-source-handler.c b/embed/ephy-view-source-handler.c
index 8aefb91..fe2de71 100644
--- a/embed/ephy-view-source-handler.c
+++ b/embed/ephy-view-source-handler.c
@@ -52,7 +52,7 @@ ephy_view_source_request_new (EphyViewSourceHandler *handler,
EphyViewSourceRequest *view_source_request;
view_source_request = g_slice_new (EphyViewSourceRequest);
- view_source_request->source_handler = handler;
+ view_source_request->source_handler = g_object_ref (handler);
view_source_request->scheme_request = g_object_ref (request);
view_source_request->web_view = NULL; /* created only if required */
view_source_request->cancellable = g_cancellable_new ();
@@ -67,6 +67,7 @@ ephy_view_source_request_free (EphyViewSourceRequest *request)
if (request->load_changed_id > 0)
g_signal_handler_disconnect (request->web_view, request->load_changed_id);
+ g_object_unref (request->source_handler);
g_object_unref (request->scheme_request);
g_clear_object (&request->web_view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]