diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-12-21 22:18:10 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-12-21 22:18:10 +0000 |
commit | 83f3338663c4969eebefd8c2c43bd3fc43587fdd (patch) | |
tree | e48ba69628c5ba793533094e308c1fce9acb21aa /src/html/html_options_collection.c | |
parent | 4ade8ad1c7b23e6eeeee6681acbdb43fb10cab43 (diff) | |
download | libdom-83f3338663c4969eebefd8c2c43bd3fc43587fdd.tar.gz libdom-83f3338663c4969eebefd8c2c43bd3fc43587fdd.tar.bz2 |
Merge branches/jmb/dom-alloc-purge back to trunk
svn path=/trunk/libdom/; revision=13316
Diffstat (limited to 'src/html/html_options_collection.c')
-rw-r--r-- | src/html/html_options_collection.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/html/html_options_collection.c b/src/html/html_options_collection.c index 0b80df2..b24d3a2 100644 --- a/src/html/html_options_collection.c +++ b/src/html/html_options_collection.c @@ -6,6 +6,7 @@ */ #include <assert.h> +#include <stdlib.h> #include <libwapcaplet/libwapcaplet.h> @@ -35,8 +36,7 @@ dom_exception _dom_html_options_collection_create(struct dom_document *doc, dom_callback_is_in_collection ic, struct dom_html_options_collection **col) { - *col = _dom_document_alloc(doc, NULL, - sizeof(dom_html_options_collection)); + *col = malloc(sizeof(dom_html_options_collection)); if (*col == NULL) return DOM_NO_MEM_ERR; @@ -77,10 +77,9 @@ void _dom_html_options_collection_finalise(struct dom_html_options_collection *c */ void _dom_html_options_collection_destroy(struct dom_html_options_collection *col) { - struct dom_document *doc = col->base.doc; _dom_html_options_collection_finalise(col); - _dom_document_alloc(doc, col, 0); + free(col); } |