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