diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-21 20:16:42 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-21 20:16:42 +0100 |
commit | d0499715bb2184a48ee7f2fdfc093fbf3fcf3286 (patch) | |
tree | c3f636b168041b9e6136c89d2f796391ed4685eb /src | |
parent | cc4a5d9ccf3367966a8be9fe0721b0bee0c3a5af (diff) | |
download | libdom-d0499715bb2184a48ee7f2fdfc093fbf3fcf3286.tar.gz libdom-d0499715bb2184a48ee7f2fdfc093fbf3fcf3286.tar.bz2 |
DOMDocument: Actually free the empty memoised string
Diffstat (limited to 'src')
-rw-r--r-- | src/core/document.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/document.c b/src/core/document.c index c43f0bc..456d906 100644 --- a/src/core/document.c +++ b/src/core/document.c @@ -143,7 +143,7 @@ dom_exception _dom_document_initialise(dom_document *doc, /* Intern the empty string. The use of a space in the constant * is to prevent the compiler warning about an empty string. */ - err = dom_string_create_interned((const uint8_t *) ' ', 0, + err = dom_string_create_interned((const uint8_t *) " ", 0, &doc->_memo_empty); if (err != DOM_NO_ERR) { dom_string_unref(doc->class_string); @@ -184,6 +184,7 @@ bool _dom_document_finalise(dom_document *doc) dom_string_unref(doc->id_name); dom_string_unref(doc->class_string); + dom_string_unref(doc->_memo_empty); _dom_document_event_internal_finalise(doc, &doc->dei); |