Fix: GPU: GPUColorBandBuilder memory leak

This commit is contained in:
Miguel Pozo
2024-05-09 19:38:22 +02:00
parent 6efb69a5fe
commit a7ff3ebad1

View File

@@ -270,6 +270,9 @@ void GPU_material_free_single(GPUMaterial *material)
if (material->ubo != nullptr) {
GPU_uniformbuf_free(material->ubo);
}
if (material->coba_builder != nullptr) {
MEM_freeN(material->coba_builder);
}
if (material->coba_tex != nullptr) {
GPU_texture_free(material->coba_tex);
}