[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:55:51 +0200 (CEST) |
>> 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.
>
> You mean, the caller is expected to call FT_New_Face, then pass
> ownership of the object to the intermediate layer, which then makes
> use of it and has the responsibility of calling FT_Done_Face?
No. The user plug-in is expected to call `FT_New_Face' and other
FreeType stuff, but the deallocation is done by the core application,
let's say, by a hypothetical `clean_up_user_module' function. Again,
this is a hypothetical, bad example. No need actually to discuss this
further :-)
Werner
- Re: [ft] FT_Done_Face Should Not Return An Error, (continued)
- Re: [ft] FT_Done_Face Should Not Return An Error, J Decker, 2018/05/05
- Re: [ft] FT_Done_Face Should Not Return An Error, Lawrence D'Oliveiro, 2018/05/05
- Re: [ft] FT_Done_Face Should Not Return An Error, Werner LEMBERG, 2018/05/07
- Re: [ft] FT_Done_Face Should Not Return An Error, Lawrence D'Oliveiro, 2018/05/07
- Re: [ft] FT_Done_Face Should Not Return An Error, Werner LEMBERG, 2018/05/07
- Re: [ft] FT_Done_Face Should Not Return An Error, Lawrence D'Oliveiro, 2018/05/07
- Re: [ft] FT_Done_Face Should Not Return An Error, Werner LEMBERG, 2018/05/07
- Re: [ft] FT_Done_Face Should Not Return An Error, Lawrence D'Oliveiro, 2018/05/07
- Re: [ft] FT_Done_Face Should Not Return An Error, Werner LEMBERG, 2018/05/07
- Re: [ft] FT_Done_Face Should Not Return An Error, Lawrence D'Oliveiro, 2018/05/07
- Re: [ft] FT_Done_Face Should Not Return An Error,
Werner LEMBERG <=
- Re: [ft] FT_Done_Face Should Not Return An Error, Lawrence D'Oliveiro, 2018/05/09
- Re: [ft] FT_Done_Face Should Not Return An Error, Werner LEMBERG, 2018/05/09
- Re: [ft] FT_Done_Face Should Not Return An Error, Lawrence D'Oliveiro, 2018/05/09
- Re: [ft] FT_Done_Face Should Not Return An Error, Werner LEMBERG, 2018/05/09
- Re: [ft] FT_Done_Face Should Not Return An Error, Lawrence D'Oliveiro, 2018/05/10
- Re: [ft] FT_Done_Face Should Not Return An Error, Werner LEMBERG, 2018/05/11
- Message not available
- Re: [ft] FT_Done_Face Should Not Return An Error, suzuki toshiya, 2018/05/10
- Re: [ft] FT_Done_Face Should Not Return An Error, Lawrence D'Oliveiro, 2018/05/10
- Re: [ft] FT_Done_Face Should Not Return An Error, Werner LEMBERG, 2018/05/11
- Re: [ft] FT_Done_Face Should Not Return An Error, Gregor Mückl, 2018/05/10