Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed memory leak.
  • Loading branch information
icculus committed Feb 19, 2009
1 parent f6cd3a6 commit c539c6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mojoshader_preprocessor.c
Expand Up @@ -961,7 +961,8 @@ static void handle_pp_define(Context *ctx)
return;

assert(done);
add_define(ctx, sym, definition, 0);
if (!add_define(ctx, sym, definition, 0))
Free(ctx, definition);
} // handle_pp_define


Expand Down

0 comments on commit c539c6b

Please sign in to comment.