Skip to content

Commit

Permalink
fix returning created grid image
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 16, 2024
1 parent ac2376e commit 90ced1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libheif/api/libheif/heif.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3477,7 +3477,6 @@ struct heif_error heif_context_add_grid_image(struct heif_context* ctx,
"Number of tile rows/columns may not exceed 65535"};
}

std::shared_ptr<ImageItem_Grid> gridimage;
auto generateGridItemResult = ImageItem_Grid::add_new_grid_item(ctx->context.get(),
image_width,
image_height,
Expand All @@ -3490,7 +3489,7 @@ struct heif_error heif_context_add_grid_image(struct heif_context* ctx,

if (out_grid_image_handle) {
*out_grid_image_handle = new heif_image_handle;
(*out_grid_image_handle)->image = gridimage;
(*out_grid_image_handle)->image = generateGridItemResult.value;
(*out_grid_image_handle)->context = ctx->context;
}

Expand Down

0 comments on commit 90ced1b

Please sign in to comment.