diff options
Diffstat (limited to 'pdf/pdf_function.c')
-rw-r--r-- | pdf/pdf_function.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_function.c b/pdf/pdf_function.c index ae46e5ec..347c8db2 100644 --- a/pdf/pdf_function.c +++ b/pdf/pdf_function.c @@ -1352,7 +1352,7 @@ pdf_load_function(pdf_xref *xref, fz_obj *dict) return func; } - func = fz_malloc(ctx, sizeof(pdf_function)); + func = fz_malloc_struct(ctx, pdf_function); memset(func, 0, sizeof *func); FZ_INIT_STORABLE(func, 1, pdf_free_function_imp); func->size = sizeof(*func); |