Avoid crash when moving away from a meeting invitation email

Reported at https://bugzilla.redhat.com/show_bug.cgi?id=1200377
This commit is contained in:
Milan Crha
2015-03-11 09:09:21 +01:00
parent f461b9291d
commit b0ebeeb189

View File

@ -1660,7 +1660,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) {