summaryrefslogtreecommitdiff
path: root/src/html/html_options_collection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/html_options_collection.c')
-rw-r--r--src/html/html_options_collection.c7
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);
}