Skip to content

Commit

Permalink
Fix memory leak from spvReflect (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
bullno1 authored Nov 22, 2024
1 parent 6460144 commit ac27f24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cute_graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ static SDL_GPUShader* s_compile(CF_ShaderInternal* shader_internal, const dyna u
}
afree(inputs);
}
spvReflectDestroyShaderModule(&module);

// Create the actual shader.
SDL_GPUShaderCreateInfo shaderCreateInfo = {};
Expand Down

0 comments on commit ac27f24

Please sign in to comment.