diff --git a/services/gam/src/bitmap/decode_png.rs b/services/gam/src/bitmap/decode_png.rs index 114ab1284..3c75a74b8 100644 --- a/services/gam/src/bitmap/decode_png.rs +++ b/services/gam/src/bitmap/decode_png.rs @@ -73,7 +73,7 @@ pub struct DecodePng { idat_remaining: u32, idat_buffer: Vec, // state of the miniz oxide inflation - inflate_state: InflateState, + inflate_state: Box, // fields to buffer inflated bytes waiting to be unfiltered inflated: [u8; INFLATED_BUFFER_LENGTH], inflated_length: usize, @@ -110,8 +110,7 @@ impl DecodePng { prior_px: vec![0u8, 0], idat_remaining: 0, idat_buffer: Vec::with_capacity(IDAT_BUFFER_LENGTH), - inflate_state: InflateState::new(DataFormat::Zlib), - //inflate_state: InflateState::new_boxed(DataFormat::Zlib), + inflate_state: InflateState::new_boxed(DataFormat::Zlib), inflated: [0u8; INFLATED_BUFFER_LENGTH], inflated_length: 0, inflated_index: INFLATED_BUFFER_LENGTH,