diff options
Diffstat (limited to 'src/core/document.c')
-rw-r--r-- | src/core/document.c | 4 |
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); |