Fix crasher during multi-thread shaper data creation
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 10 Jan 2013 06:03:36 +0000 (00:03 -0600)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 10 Jan 2013 06:03:36 +0000 (00:03 -0600)
commit69fd6e157c7ec83a5d5d8731fc14675ce4509b09
treeeacaa9a8b27523fe0b3c227f7a7150a9016de0b2
parentecd454b3cd75050e0c95e1d2aa55744559338ec8
Fix crasher during multi-thread shaper data creation

Sample crash:

0  _hb_graphite2_shaper_face_data_destroy (data=0xffffffffffffffff)
    at ../../src/hb-graphite2.cc:129
1  0x00007ffff4271d7d in hb_graphite2_shaper_face_data_ensure (
    face=<optimized out>) at ../../src/hb-shaper-list.hh:35
2  hb_shape_plan_plan (shaper_list=<optimized out>, num_user_features=0,
    user_features=0x0, shape_plan=0xf7b490) at ../../src/hb-shaper-list.hh:35
3  hb_shape_plan_create (face=<optimized out>, props=<optimized out>,
    user_features=0x0, num_user_features=0, shaper_list=<optimized out>)
    at ../../src/hb-shape-plan.cc:108
4  0x00007ffff4272c93 in hb_shape_plan_create_cached (face=0x10cf2b0,
    props=0x11980d8, user_features=0x0, num_user_features=<optimized out>,
    shaper_list=0x0) at ../../src/hb-shape-plan.cc:283
src/hb-shaper-private.hh