Skip to content
Permalink
Browse files
Fix memory leak in mtlDeleteShader
  • Loading branch information
flibitijibibo committed Apr 26, 2020
1 parent 2fb9d8b commit 2a5c99e45b538d4f200f0be7b0c749cf150f52a7

File 1 of 1 in 2a5c99e

@@ -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

0 comments on commit 2a5c99e

Please sign in to comment.