mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-06-29 07:34:35 +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)
|
if (fd >= 0)
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
_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