mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-17 19:19:47 +00:00
Localize variables in imagequant
This commit is contained in:
committed by
Ingvar Stepanyan
parent
4fc18de5f9
commit
c39383333f
@@ -17,7 +17,7 @@ export async function process(data: ImageData, opts: QuantizeOptions): Promise<I
|
||||
|
||||
const imgData = new ImageData(new Uint8ClampedArray(result.buffer), result.width, result.height);
|
||||
|
||||
module.free_result();
|
||||
module.free_result(imgData.data.byteOffset);
|
||||
|
||||
return imgData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user