mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-05-14 02:51:50 +02:00
Don't set extension pointer if object is NULL.
This commit is contained in:
parent
57a01a7317
commit
0c41a14919
@ -3532,7 +3532,8 @@ create_font(pdfio_obj_t *file_obj, // I - Font file object
|
|||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
||||||
_pdfioObjSetExtension(obj, font, (_pdfio_extfree_t)ttfDelete);
|
if (obj)
|
||||||
|
_pdfioObjSetExtension(obj, font, (_pdfio_extfree_t)ttfDelete);
|
||||||
|
|
||||||
return (obj);
|
return (obj);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user