Skip to content

vkd3d-shader/hlsl: Properly release string buffer on write_atan_or_atan2().

Francisco Casas requested to merge fcasas/vkd3d:string-buffer-fix into master

Fix to a sneaky memory leak.

  • hlsl_get_string_buffer()/vkd3d_string_buffer_get() should go with hlsl_release_string_buffer()/vkd3d_string_buffer_release().
  • vkd3d_string_buffer_init() should go with vkd3d_string_buffer_free(), which only frees the internal char * of the string buffer.

Merge request reports

Loading