Relax inert checks
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 6 Aug 2014 19:36:41 +0000 (15:36 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 10 Apr 2015 02:16:57 +0000 (19:16 -0700)
commiteb0bf3ae6688b7e98a706df2ad2714c071d77e22
tree81d0d6e190cf205fd7566236c5925056f942bd2a
parente8fd83932a75cfbaa4638a757868915ebfac3c1f
Relax inert checks

Previously, when creating an object from inert inputs (eg:
"hb_font_create(hb_face_get_empty())") we returned the inert
empty object.  This is not helpful as there are legitimate
usecases to do that.

We now never return the inert object unless allocation failed.

Tests are revised to reflect.
src/hb-face.cc
src/hb-font.cc
src/hb-shape-plan.cc
test/api/test-font.c
test/api/test-object.c