<div dir="ltr"><div dir="ltr">On Fri, May 24, 2019 at 2:23 PM Eli Zaretskii <<a href="mailto:eliz@gnu.org">eliz@gnu.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
But the question about hb_face_t management is still not entirely<br>
clear.  I don't really need hb_face_t, I only create it as an<br>
intermediate step towards hb_font_t.  So my question is: once I have<br>
hb_font_t, can I destroy the hb_face_t I used to create hb_font_t?  If<br>
not, how do I arrange for hb_face_t to be destroyed when the<br>
corresponding hb_font_t is destroyed?<br></blockquote><div> </div><div>Yes.  Just destroy anything as soon as you personally don't need it.  Destroy hb_blob_t after you pass it to hb_face_create...(). Destroy hb_face_t as soon as you pass it to hb_font_create().  HB uses reference-counting to actually destroy things when they are not used anymore.</div></div>-- <br><div dir="ltr" class="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div></div>