[PATCH vkd3d 1/2] vkd3d-shader: Do not check for NULL in vkd3d_shader_free_scan_descriptor_info().

Henri Verbeet hverbeet at gmail.com
Tue Aug 25 07:04:23 CDT 2020


On Mon, 24 Aug 2020 at 20:51, Zebediah Figura <zfigura at codeweavers.com> wrote:
> @@ -889,9 +889,6 @@ int vkd3d_shader_scan(const struct vkd3d_shader_compile_info *compile_info, char
>
>  void vkd3d_shader_free_scan_descriptor_info(struct vkd3d_shader_scan_descriptor_info *scan_descriptor_info)
>  {
> -    if (!scan_descriptor_info)
> -        return;
> -
>      vkd3d_free(scan_descriptor_info->descriptors);
>  }
>
This is fine, but then we also need to handle "scan_descriptor_info"
being NULL in vkd3d_shader_scan(). (As it is in
test_invalid_shaders().)



More information about the wine-devel mailing list