diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2012-03-28 19:33:33 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2012-03-28 19:33:33 +0000 |
commit | 805473190561d60f06e3b5d63cc30029137cf593 (patch) | |
tree | 8e40217b9719be155e97e030a7980d2bc0e471d7 /src/core/document.c | |
parent | 06aebd84b7e2cc8e573642b220b1667afff0bff6 (diff) | |
download | libdom-805473190561d60f06e3b5d63cc30029137cf593.tar.gz libdom-805473190561d60f06e3b5d63cc30029137cf593.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.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); |