From 7f6b1da85cd9bd02e1f16ba48d00470e6fd5f9cb Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Wed, 18 May 2016 11:58:06 -0700 Subject: Allow creation of unboxed FontTables --- components/gfx/text/shaping/harfbuzz.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/gfx/text') 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. -- cgit v1.2.3