mojoshader.c
branchtrunk
changeset 187 1c709f65cf1b
parent 186 1658e8ce74ac
child 189 d31efd640c13
--- a/mojoshader.c	Tue Apr 22 06:07:36 2008 -0400
+++ b/mojoshader.c	Wed Apr 23 04:19:39 2008 -0400
@@ -430,7 +430,7 @@
 
 
 static MOJOSHADER_parseData out_of_mem_data = {
-    "Out of memory", 0, 0, 0, MOJOSHADER_TYPE_UNKNOWN, 0, 0, 0, 0
+    "Out of memory", 0, 0, 0, 0, MOJOSHADER_TYPE_UNKNOWN, 0, 0, 0, 0
 };
 
 static const char *out_of_mem_str = "Out of memory";
@@ -4659,6 +4659,7 @@
     } // if
     else
     {
+        retval->profile = ctx->profile->name;
         retval->output = output;
         retval->output_len = ctx->output_len;
         retval->instruction_count = ctx->instruction_count;
@@ -4825,6 +4826,8 @@
     MOJOSHADER_free f = (data->free == NULL) ? internal_free : data->free;
     void *d = data->malloc_data;
 
+    // we don't f(data->profile), because that's internal static data.
+
     if (data->output != NULL)  // check for NULL in case of dumb free() impl.
         f((void *) data->output, d);