mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +00:00
LibGfx: Bubble up allocation failure instead of panicking
This commit is contained in:
parent
fc538bc00b
commit
a139c77c71
1 changed files with 1 additions and 1 deletions
|
@ -1332,7 +1332,7 @@ static ErrorOr<Vector<Macroblock>> construct_macroblocks(JPEGLoadingContext& con
|
|||
// This function handles the "Multi-scan" loop.
|
||||
|
||||
Vector<Macroblock> macroblocks;
|
||||
macroblocks.resize(context.mblock_meta.padded_total);
|
||||
TRY(macroblocks.try_resize(context.mblock_meta.padded_total));
|
||||
|
||||
Marker marker = TRY(read_marker_at_cursor(*context.stream));
|
||||
while (true) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue