fix color leak 2

This commit is contained in:
Nishi 2026-07-05 06:51:43 +09:00
commit 0826afb334
2 changed files with 6 additions and 5 deletions

View file

@ -90,6 +90,8 @@ void MwDrawText(MwWidget handle, MwFLFont ttf, MwPoint* point, const char* text,
fadedColor->common.red = fadedColor->common.red + (c->common.red - fadedColor->common.red) * 0.5;
fadedColor->common.green = fadedColor->common.green + (c->common.green - fadedColor->common.green) * 0.5;
fadedColor->common.blue = fadedColor->common.blue + (c->common.blue - fadedColor->common.blue) * 0.5;
MwLLFreeColor(c);
}
}