summaryrefslogtreecommitdiff
path: root/src/core/document.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2012-03-28 19:33:33 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2012-03-28 19:33:33 +0000
commit1aa65d46aa7c2861612e912c0ce44f53d5b35df7 (patch)
tree8e40217b9719be155e97e030a7980d2bc0e471d7 /src/core/document.c
parentfea71815737d9da24f66c440f02aa16ee256c770 (diff)
downloadlibdom-1aa65d46aa7c2861612e912c0ce44f53d5b35df7.tar.gz
libdom-1aa65d46aa7c2861612e912c0ce44f53d5b35df7.tar.bz2
Promote ref/unref in dom_node to be inlines.
svn path=/trunk/libdom/; revision=13761
Diffstat (limited to 'src/core/document.c')
-rw-r--r--src/core/document.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/document.c b/src/core/document.c
index 723d4f8..5a286fc 100644
--- a/src/core/document.c
+++ b/src/core/document.c
@@ -1345,7 +1345,7 @@ dom_exception dom_document_dup_node(dom_document *doc, dom_node *node,
}
/**
- * Try to destory the document.
+ * Try to destroy the document.
*
* \param doc The instance of Document
*
@@ -1357,7 +1357,7 @@ dom_exception dom_document_dup_node(dom_document *doc, dom_node *node,
*/
void _dom_document_try_destroy(dom_document *doc)
{
- if (doc->base.refcnt != 0 || doc->base.parent != NULL)
+ if (doc->base.base.refcnt != 0 || doc->base.parent != NULL)
return;
_dom_document_destroy((dom_node_internal *) doc);