Skip to content
Permalink
Browse files

fix memleak with TAISEI_PRELOAD_SHADERS=1

  • Loading branch information
Akaricchi committed Nov 26, 2019
1 parent 80b1026 commit 911f42b23a276fb2b31d32ee28598c53c3f64dc2
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/resource/resource.c
@@ -466,6 +466,7 @@ static void* preload_shaders(const char *path, void *arg) {

char *name = resource_util_basename(SHPROG_PATH_PREFIX, path);
preload_resource(RES_SHADER_PROGRAM, name, RESF_PERMANENT);
free(name);

return NULL;
}

0 comments on commit 911f42b

Please sign in to comment.
You can’t perform that action at this time.