Commit e6d6fbf6 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

gdi32: Fix leak of FullName of replaced font face.

parent 10371fcc
......@@ -262,7 +262,7 @@ struct enum_data
typedef struct tagFace {
struct list entry;
WCHAR *StyleName;
const WCHAR *FullName;
WCHAR *FullName;
char *file;
void *font_data_ptr;
DWORD font_data_size;
......@@ -1454,6 +1454,7 @@ static INT AddFontToList(const char *file, void *font_data_ptr, DWORD font_data_
list_remove(&face->entry);
HeapFree(GetProcessHeap(), 0, face->file);
HeapFree(GetProcessHeap(), 0, face->StyleName);
HeapFree(GetProcessHeap(), 0, face->FullName);
HeapFree(GetProcessHeap(), 0, face);
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment