Browse Source

Fix memory leak

pull/3153/head
winscripter 1 month ago
parent
commit
07f6be0000
  1. 6
      src/ImageSharp/Formats/Jxl/Processing/JxlQuantizer.cs

6
src/ImageSharp/Formats/Jxl/Processing/JxlQuantizer.cs

@ -369,12 +369,18 @@ internal sealed class JxlQuantizer
{
if (rawQuantField.GetSize() != qf.GetSize())
{
data.Dispose();
deviations.Dispose();
return false;
}
this.SetQuantField(qf, qf.GetRectangle(), rawQuantField);
}
data.Dispose();
deviations.Dispose();
return true;
}

Loading…
Cancel
Save