diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-10-05 15:06:32 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-10-05 15:06:32 +0100 |
commit | 3c4f4ca461e1c73e8e6ab815ff8fc5e5201a78f5 (patch) | |
tree | b27cd93e817fb9811ef3e5736d1175a9386373dd | |
parent | 75df8b9d4a81a291d8833df32cc48a47669065bd (diff) | |
download | netsurf-3c4f4ca461e1c73e8e6ab815ff8fc5e5201a78f5.tar.gz netsurf-3c4f4ca461e1c73e8e6ab815ff8fc5e5201a78f5.tar.bz2 |
Alocate jsclass_document_priv size.
-rw-r--r-- | javascript/jsapi/htmldocument.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/jsapi/htmldocument.c b/javascript/jsapi/htmldocument.c index 260f368c9..8b38acd4d 100644 --- a/javascript/jsapi/htmldocument.c +++ b/javascript/jsapi/htmldocument.c @@ -228,7 +228,7 @@ JSObject *jsapi_new_document(JSContext *cx, JSObject *parent, struct html_conten JSObject *jsdocument; struct jsclass_document_priv *document; - document = malloc(sizeof(document)); + document = malloc(sizeof(*document)); if (document == NULL) { return NULL; } |