From c95ad7585c93b0c1b6ff89e5a0448068ea368240 Mon Sep 17 00:00:00 2001 From: Dan Vrátil Date: Fri, 8 Jun 2012 17:46:12 +0200 Subject: ItipView should hold a reference to underlaying WebKitDOMDocument --- modules/itip-formatter/itip-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/itip-formatter/itip-view.c b/modules/itip-formatter/itip-view.c index 16a6d5cb09..1fddba9061 100644 --- a/modules/itip-formatter/itip-view.c +++ b/modules/itip-formatter/itip-view.c @@ -1220,6 +1220,7 @@ itip_view_finalize (GObject *object) d(printf("Itip view finalized!\n")); + g_clear_object (&priv->dom_document); g_free (priv->extension_name); g_free (priv->sender); g_free (priv->organizer); @@ -1543,7 +1544,7 @@ itip_view_create_dom_bindings (ItipView *view, WebKitDOMDocument *doc; doc = webkit_dom_node_get_owner_document (WEBKIT_DOM_NODE (element)); - view->priv->dom_document = doc; + view->priv->dom_document = g_object_ref (doc); el = webkit_dom_document_get_element_by_id (doc, CHECKBOX_RECUR); if (el) { -- cgit