mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-12 04:24:22 +03:00
Alocate jsclass_document_priv size.
This commit is contained in:
parent
75df8b9d4a
commit
3c4f4ca461
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user