Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix memory leak in mtlDeleteShader
  • Loading branch information
flibitijibibo committed Apr 26, 2020
1 parent 2fb9d8b commit 2a5c99e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mojoshader_metal.c
Expand Up @@ -564,6 +564,7 @@ void MOJOSHADER_mtlDeleteShader(MOJOSHADER_mtlShader *shader)
else
{
dealloc_ubo(shader, ctx->free_fn, ctx->malloc_data);
MOJOSHADER_freeParseData(shader->parseData);
ctx->free_fn(shader, ctx->malloc_data);
} // else
} // if
Expand Down

0 comments on commit 2a5c99e

Please sign in to comment.