[evolution] ItipView should hold a reference to underlaying WebKitDOMDocument
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] ItipView should hold a reference to underlaying WebKitDOMDocument
- Date: Fri, 8 Jun 2012 15:47:12 +0000 (UTC)
commit c95ad7585c93b0c1b6ff89e5a0448068ea368240
Author: Dan VrÃtil <dvratil redhat com>
Date: Fri Jun 8 17:46:12 2012 +0200
ItipView should hold a reference to underlaying WebKitDOMDocument
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 16a6d5c..1fddba9 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]