Skip to content

Fix FreeQuantization function - #2040

Open
lferruzzi wants to merge 1 commit into
ValveSoftware:masterfrom
lferruzzi:fix_quantize_leak
Open

Fix FreeQuantization function#2040
lferruzzi wants to merge 1 commit into
ValveSoftware:masterfrom
lferruzzi:fix_quantize_leak

Conversation

@lferruzzi

Copy link
Copy Markdown

Description

Fix for the issue Incorrect delete call in mathlib quantize.cpp , where the QuantizedValue is incorrectly deallocated by the FreeQuantization function.

The quantize.h functions are used only by src\mathlib\imagequant.cpp ColorQuantize, which not used anywhere in the repo.

Removed unused mathlib/quantize.h include from VRAD's lightmap.cpp.

@lferruzzi lferruzzi changed the title Fix FreeQuantization method Fix FreeQuantization function Aug 30, 2026
Co-Authored-By: Bruno Rocha <github@rockbruno.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant