Module: wine Branch: master Commit: a03cbbdbe2cd50e1d6f113639be20edb562d4052 URL: https://gitlab.winehq.org/wine/wine/-/commit/a03cbbdbe2cd50e1d6f113639be20ed...
Author: Hans Lehnert hans.lehnert@gmail.com Date: Fri Dec 8 21:58:30 2023 -0800
gdiplus: Fix invalid pointer returned when failing to create font.
---
dlls/gdiplus/font.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c index 4970043eb15..0dcfad34bbb 100644 --- a/dlls/gdiplus/font.c +++ b/dlls/gdiplus/font.c @@ -236,6 +236,7 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC hdc, if (stat != Ok) { free(*font); + *font = NULL; return NotTrueTypeFont; }