diff options
author | Dan Vrátil <dvratil@redhat.com> | 2012-06-08 23:46:12 +0800 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2012-06-08 23:46:12 +0800 |
commit | c95ad7585c93b0c1b6ff89e5a0448068ea368240 (patch) | |
tree | 45f1a11c3ea51e23ae10d38f6b236316e75a422b | |
parent | 32fdd45dd6f219403f6d786040b4f749bf69a849 (diff) | |
download | gsoc2013-evolution-c95ad7585c93b0c1b6ff89e5a0448068ea368240.tar.gz gsoc2013-evolution-c95ad7585c93b0c1b6ff89e5a0448068ea368240.tar.zst gsoc2013-evolution-c95ad7585c93b0c1b6ff89e5a0448068ea368240.zip |
ItipView should hold a reference to underlaying WebKitDOMDocument
-rw-r--r-- | modules/itip-formatter/itip-view.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |