Don't set extension pointer if object is NULL.

This commit is contained in:
Michael R Sweet 2025-04-25 12:40:54 -04:00
parent 57a01a7317
commit 0c41a14919
No known key found for this signature in database
GPG Key ID: BE67C75EC81F3244

View File

@ -3532,6 +3532,7 @@ create_font(pdfio_obj_t *file_obj, // I - Font file object
done:
if (obj)
_pdfioObjSetExtension(obj, font, (_pdfio_extfree_t)ttfDelete);
return (obj);