layers: MR128, Fix mismatched new[]/delete in validate_pipeline_shaders
authorChris Forbes <chrisforbes@google.com>
Thu, 17 Dec 2015 04:10:19 +0000 (17:10 +1300)
committerMark Lobodzinski <mark@lunarg.com>
Tue, 12 Jan 2016 21:26:12 +0000 (14:26 -0700)
In draw_state layer.

layers/draw_state.cpp

index 211b3d5ea0463504bdbc971d6c4b738d82c3d079..48fd4ccf32ecaedcb17ba008028f871791686074 100644 (file)
@@ -1327,7 +1327,7 @@ validate_pipeline_shaders(layer_data *my_data, VkDevice dev, PIPELINE_NODE* pPip
         pass = validate_fs_outputs_against_render_pass(my_data, dev, shaders[fragment_stage], rp, pCreateInfo->subpass) && pass;
     }
 
-    delete shaders;
+    delete [] shaders;
 
     return pass;
 }