summaryrefslogtreecommitdiff
path: root/pdf/pdf_xobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/pdf_xobject.c')
-rw-r--r--pdf/pdf_xobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_xobject.c b/pdf/pdf_xobject.c
index 510860e3..b56996cd 100644
--- a/pdf/pdf_xobject.c
+++ b/pdf/pdf_xobject.c
@@ -47,7 +47,7 @@ pdf_load_xobject(pdf_xref *xref, fz_obj *dict)
return form;
}
- form = fz_malloc(ctx, sizeof(pdf_xobject));
+ form = fz_malloc_struct(ctx, pdf_xobject);
FZ_INIT_STORABLE(form, 1, pdf_free_xobject_imp);
form->resources = NULL;
form->contents = NULL;