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: Lawrence D'Oliveiro
Subject: Re: [ft] FT_Done_Face Should Not Return An Error
Date: Mon, 7 May 2018 17:48:17 +1200

On Mon, 07 May 2018 07:33:16 +0200 (CEST), Werner LEMBERG wrote:

> You would only check the return value of `FT_Done_Face' if your code
> gets an `FT_Face' handle that it doesn't manage by itself (rather
> unlikely, but who knows).  In this situation it could happen that the
> handle is NULL, and this should be reported back – not because
> `FT_Done_Face' can't handle value NULL but the fact that it has
> received such a handle, which indicates a problem in the calling
> program.

NULL should be perfectly valid -- it simply indicates the object
was never allocated.



reply via email to

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