Skip to content

Commit

Permalink
hblur: remove superfluous allocation
Browse files Browse the repository at this point in the history
pass2_rtt_ctx is already allocated earlier in the function.

Fixes CID 1584829.
  • Loading branch information
mbouron committed Mar 30, 2024
1 parent 970ebf7 commit a7449df
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions libnopegl/src/node_hblur.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,12 +515,6 @@ static int resize(struct ngl_node *node)
goto fail;
}

pass2_rtt_ctx = ngli_rtt_create(ctx);
if (!pass2_rtt_ctx) {
ret = NGL_ERROR_MEMORY;
goto fail;
}

const struct rtt_params pass2_rtt_params = {
.width = dst->params.width,
.height = dst->params.height,
Expand Down

0 comments on commit a7449df

Please sign in to comment.