freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] FT_Done_Face Should Not Return An Error


From: Werner LEMBERG
Subject: Re: [ft] FT_Done_Face Should Not Return An Error
Date: Mon, 07 May 2018 09:01:34 +0200 (CEST)

>>> NULL should be perfectly valid -- it simply indicates the object
>>> was never allocated.
>> 
>> Well, yes – if you trust the source.
> 
> Does FreeType “trust its source”?

Mhmm, probably bad wording from my side.  With `trusting' I mean that
the code controls `FT_New_Face'.  For example, a plug-in provided by
the user might call `FT_New_Face', delegating the deallocation to the
program core.  In this case the program core cannot trust that the
user module always does the right thing.


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]