Skip to content

Commit

Permalink
sdlgpu: Free blobCache if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Oct 7, 2024
1 parent 625f307 commit fcbb565
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mojoshader_sdlgpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ void MOJOSHADER_sdlDestroyContext(

ctx->free_fn(ctx->uniform_staging, ctx->malloc_data);

if (ctx->blobCache != NULL)
SDL_free(ctx->blobCache);

ctx->free_fn(ctx, ctx->malloc_data);

SDL_ShaderCross_Quit();
Expand Down

0 comments on commit fcbb565

Please sign in to comment.