Skip to content

Commit 3f0fd5c

Browse files
author
Peter Harris
committed
Free context on validation failure
1 parent 4398ce0 commit 3f0fd5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/astcenc_entry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ astcenc_error astcenc_context_alloc(
741741
status = validate_config(ctx->config);
742742
if (status != ASTCENC_SUCCESS)
743743
{
744-
delete ctx;
744+
delete ctxo;
745745
return status;
746746
}
747747

0 commit comments

Comments
 (0)