We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6c8a2b commit 00a0348Copy full SHA for 00a0348
src/hist.rs
@@ -132,7 +132,6 @@ impl Histogram {
132
self.reserve(estimated_colors);
133
134
self.add_pixel_rows(&image.px, image.importance_map.as_deref(), posterize_bits)?;
135
- image.free_histogram_inputs();
136
137
Ok(())
138
}
src/quant.rs
@@ -87,6 +87,8 @@ impl QuantizationResult {
87
return Err(Error::Aborted);
88
89
90
+ image.free_histogram_inputs();
91
+
92
let mut palette = self.palette.clone();
93
let mut remapped = Box::new(Remapped {
94
int_palette: Palette { count: 0, entries: [RGBA::default(); MAX_COLORS] },
0 commit comments