[ft] Fix unsafe cast of FT_Done_Face in hb_ft_{face,font}_create_referenced (#289)
authorBirunthan Mohanathas <birunthan@mohanathas.com>
Mon, 11 Jul 2016 20:38:23 +0000 (13:38 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 11 Jul 2016 20:38:23 +0000 (13:38 -0700)
commit6bf9db4f1e1d51f9acb5e37b89caa8f4d275e7ce
tree0d5dd53510ff79d566c95e62c610685a80ebbd89
parent0b8f3ab0220ca4731516313828515f26bb480645
[ft] Fix unsafe cast of FT_Done_Face in hb_ft_{face,font}_create_referenced (#289)

Prior to this change the function `FT_Error FT_Done_Face(FT_Face *)` was
called through a pointer with the signature `void (void *)` resulting in
undefined behaviour.
src/hb-ft.cc