diff options
author | Youngbok Shin <youngb.shin@samsung.com> | 2015-11-03 20:24:15 +0900 |
---|---|---|
committer | Youngbok Shin <youngb.shin@samsung.com> | 2015-11-03 20:49:45 +0900 |
commit | 4b524cd9449699e546a0991326d12ee2c915fab3 (patch) | |
tree | e6ce432188d6fe2b0b4bee6ddad34e7977c26a44 /src/hb-shaper-private.hh | |
parent | 4a63fee1394ef6d952890db5d6cf4b664f19da2e (diff) | |
download | harfbuzz-4b524cd9449699e546a0991326d12ee2c915fab3.tar.gz harfbuzz-4b524cd9449699e546a0991326d12ee2c915fab3.tar.bz2 harfbuzz-4b524cd9449699e546a0991326d12ee2c915fab3.zip |
Imported Upstream version 0.9.40upstream/0.9.40
Change-Id: Ifcc6c10a445fb0c0cc5bfee7638d67eb05a63a4c
Diffstat (limited to 'src/hb-shaper-private.hh')
-rw-r--r-- | src/hb-shaper-private.hh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/hb-shaper-private.hh b/src/hb-shaper-private.hh index 29c4493..d1d1146 100644 --- a/src/hb-shaper-private.hh +++ b/src/hb-shaper-private.hh @@ -79,10 +79,9 @@ struct hb_shaper_data_t { HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (HB_SHAPER_DATA_TYPE (shaper, object) *data) #define HB_SHAPER_DATA_DESTROY(shaper, object) \ - if (object->shaper_data.shaper && \ - object->shaper_data.shaper != HB_SHAPER_DATA_INVALID && \ - object->shaper_data.shaper != HB_SHAPER_DATA_SUCCEEDED) \ - HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (HB_SHAPER_DATA (shaper, object)); + if (HB_SHAPER_DATA_TYPE (shaper, object) *data = HB_SHAPER_DATA (shaper, object)) \ + if (data != HB_SHAPER_DATA_INVALID && data != HB_SHAPER_DATA_SUCCEEDED) \ + HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (data); #define HB_SHAPER_DATA_ENSURE_DECLARE(shaper, object) \ static inline bool \ |