diff options
-rw-r--r-- | src/html/html_document.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c index e248e17..fb880cf 100644 --- a/src/html/html_document.c +++ b/src/html/html_document.c @@ -259,9 +259,7 @@ dom_exception _dom_html_document_create_element_ns(dom_document *doc, namespace, prefix, (dom_html_element **)result); /* Tidy up */ - if (localname != NULL) { - dom_string_unref(localname); - } + dom_string_unref(localname); if (prefix != NULL) { dom_string_unref(prefix); |