Skip to content

Commit

Permalink
Fixed memory leak in MOJOSHADER_freeEffect().
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 22, 2011
1 parent 0340422 commit 1c86548
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mojoshader_effects.c
Expand Up @@ -352,8 +352,12 @@ void MOJOSHADER_freeEffect(const MOJOSHADER_effect *_effect)
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

Expand Down

0 comments on commit 1c86548

Please sign in to comment.