mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-06-28 23:24:36 +02:00
Don't set extension pointer if object is NULL.
This commit is contained in:
parent
31a086e165
commit
afa6d4c4de
@ -1945,7 +1945,8 @@ pdfioFileCreateFontObjFromFile(
|
||||
if (fd >= 0)
|
||||
close(fd);
|
||||
|
||||
_pdfioObjSetExtension(obj, font, (_pdfio_extfree_t)ttfDelete);
|
||||
if (obj)
|
||||
_pdfioObjSetExtension(obj, font, (_pdfio_extfree_t)ttfDelete);
|
||||
|
||||
return (obj);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user