Fix memory leak in mtlDeleteShader
authorEthan Lee <flibitijibibo@flibitijibibo.com>
Sun, 26 Apr 2020 10:02:35 -0700
changeset 1250 30f8b128b906
parent 1249 349cc8980298
child 1251 cee4402d5ab8
Fix memory leak in mtlDeleteShader
mojoshader_metal.c
--- a/mojoshader_metal.c	Sat Apr 25 14:28:48 2020 -0700
+++ b/mojoshader_metal.c	Sun Apr 26 10:02:35 2020 -0700
@@ -564,6 +564,7 @@
         else
         {
             dealloc_ubo(shader, ctx->free_fn, ctx->malloc_data);
+            MOJOSHADER_freeParseData(shader->parseData);
             ctx->free_fn(shader, ctx->malloc_data);
         } // else
     } // if