mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-08-31 16:22:22 +02:00
Don't set extension pointer if object is NULL.
This commit is contained in:
@@ -3532,6 +3532,7 @@ create_font(pdfio_obj_t *file_obj, // I - Font file object
|
|||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
||||||
|
if (obj)
|
||||||
_pdfioObjSetExtension(obj, font, (_pdfio_extfree_t)ttfDelete);
|
_pdfioObjSetExtension(obj, font, (_pdfio_extfree_t)ttfDelete);
|
||||||
|
|
||||||
return (obj);
|
return (obj);
|
||||||
|
Reference in New Issue
Block a user