Fixed memory leak in MOJOSHADER_freeEffect().
authorRyan C. Gordon <icculus@icculus.org>
Sun, 22 May 2011 17:23:57 -0400
changeset 1021 cad933999680
parent 1020 c0fe544e0feb
child 1022 3503b95f0dab
Fixed memory leak in MOJOSHADER_freeEffect().
mojoshader_effects.c
--- a/mojoshader_effects.c	Sun May 22 17:18:41 2011 -0400
+++ b/mojoshader_effects.c	Sun May 22 17:23:57 2011 -0400
@@ -352,8 +352,12 @@
     for (i = 0; i < effect->technique_count; i++)
     {
         MOJOSHADER_effectTechnique *technique = &effect->techniques[i];
+        f((void *) technique->name, d);
         for (j = 0; j < technique->pass_count; j++)
+        {
+            f((void *) technique->passes[j].name, d);
             f(technique->passes[j].states, d);
+        } // for
         f(technique->passes, d);
     } // for