[HB] Save edit even if not writeable

This commit is contained in:
Behdad Esfahbod 2009-08-04 21:47:29 -04:00
parent 9bd629ccd0
commit f4b58d3fc2
1 changed files with 2 additions and 4 deletions

View File

@ -232,10 +232,8 @@ _hb_sanitize_fini (hb_sanitize_context_t *context,
static HB_GNUC_UNUSED bool static HB_GNUC_UNUSED bool
_hb_sanitize_edit (hb_sanitize_context_t *context) _hb_sanitize_edit (hb_sanitize_context_t *context)
{ {
bool perm = hb_blob_try_writeable_inplace (context->blob);
if (perm)
context->edit_count++; context->edit_count++;
return perm; return hb_blob_try_writeable_inplace (context->blob);
} }
#define SANITIZE_ARG_DEF \ #define SANITIZE_ARG_DEF \