Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
metal: Set ctx to NULL after free
  • Loading branch information
TheSpydog committed May 2, 2020
1 parent c136bde commit 4c48bff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mojoshader_metal.c
Expand Up @@ -396,6 +396,7 @@ void MOJOSHADER_mtlDestroyContext(void)
{
ctx->free_fn(ctx->buffersInUse, ctx->malloc_data);
ctx->free_fn(ctx, ctx->malloc_data);
ctx = NULL;
} // MOJOSHADER_mtlDestroyContext

void *MOJOSHADER_mtlCompileLibrary(MOJOSHADER_effect *effect)
Expand Down

0 comments on commit 4c48bff

Please sign in to comment.