diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2016-05-18 11:58:06 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2016-05-19 09:44:56 -0700 |
commit | 7f6b1da85cd9bd02e1f16ba48d00470e6fd5f9cb (patch) | |
tree | 1b98acbafad59ca501edbe2877819b57dc998239 /components/gfx/text | |
parent | 0010b448b897afd8805b2f0976133b12a1b5411e (diff) | |
download | servo-7f6b1da85cd9bd02e1f16ba48d00470e6fd5f9cb.tar.gz servo-7f6b1da85cd9bd02e1f16ba48d00470e6fd5f9cb.zip |
Allow creation of unboxed FontTables
Diffstat (limited to 'components/gfx/text')
-rw-r--r-- | components/gfx/text/shaping/harfbuzz.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/gfx/text/shaping/harfbuzz.rs b/components/gfx/text/shaping/harfbuzz.rs index 9f5615e491b..a1457e4ffd0 100644 --- a/components/gfx/text/shaping/harfbuzz.rs +++ b/components/gfx/text/shaping/harfbuzz.rs @@ -519,7 +519,7 @@ extern fn font_table_func(_: *mut hb_face_t, // `Box::into_raw` intentionally leaks the FontTable so we don't destroy the buffer // while HarfBuzz is using it. When HarfBuzz is done with the buffer, it will pass // this raw pointer back to `destroy_blob_func` which will deallocate the Box. - let font_table_ptr = Box::into_raw(font_table); + let font_table_ptr = Box::into_raw(box font_table); let buf = (*font_table_ptr).buffer(); // HarfBuzz calls `destroy_blob_func` when the buffer is no longer needed. |