diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2010-05-14 23:20:16 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2010-05-14 23:20:16 -0400 |
commit | a6a79df5fe2ed2cd307e7a991346faee164e70d9 (patch) | |
tree | 1ca0f5c4d2754601856c2389a9f3b2823a09a4cf /src/hb-buffer-private.hh | |
parent | ca54a12658510f9aa0b2db82f20a8fac230d6bb6 (diff) |
Handle malloc failture in the buffer
Diffstat (limited to 'src/hb-buffer-private.hh')
-rw-r--r-- | src/hb-buffer-private.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hb-buffer-private.hh b/src/hb-buffer-private.hh index b293b964..d8976272 100644 --- a/src/hb-buffer-private.hh +++ b/src/hb-buffer-private.hh @@ -108,8 +108,9 @@ struct _hb_buffer_t { unsigned int allocated; /* Length of allocated arrays */ - hb_bool_t have_output; /* Whether we have an output buffer going on */ - hb_bool_t have_positions; /* Whether we have positions */ + hb_bool_t have_output; /* Whether we have an output buffer going on */ + hb_bool_t have_positions; /* Whether we have positions */ + hb_bool_t in_error; /* Allocation failed */ unsigned int i; /* Cursor into ->info and ->pos arrays */ unsigned int len; /* Length of ->info and ->pos arrays */ |