mojoshader_preprocessor.c
changeset 1060 4cdf5a3ceb03
parent 955 9315c168a97a
child 1120 f655ea9c8ecd
--- a/mojoshader_preprocessor.c	Thu Oct 20 12:08:12 2011 -0400
+++ b/mojoshader_preprocessor.c	Thu Oct 20 17:50:27 2011 -0400
@@ -1119,8 +1119,11 @@
 handle_pp_define_failed:
     Free(ctx, sym);
     Free(ctx, definition);
-    while (params--)
-        Free(ctx, idents[params]);
+    if (idents != NULL)
+    {
+        while (params--)
+            Free(ctx, idents[params]);
+    } // if
     Free(ctx, idents);
 } // handle_pp_define