mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 13:21:21 +00:00
[WIN32SS] Addendum to r74285, actually leak the pointer used by Freetype, so that when it is accessed later, we have not freed it.
svn path=/trunk/; revision=74286
This commit is contained in:
parent
ba121aaf83
commit
ebbf3e1aa6
1 changed files with 9 additions and 1 deletions
|
@ -1070,8 +1070,16 @@ IntGdiAddFontMemResource(PVOID Buffer, DWORD dwSize, PDWORD pNumAdded)
|
||||||
INT FontCount;
|
INT FontCount;
|
||||||
HANDLE Ret = 0;
|
HANDLE Ret = 0;
|
||||||
|
|
||||||
|
/* We leak this buffer for now, same as all fonts do with their buffer! */
|
||||||
|
LoadFont.Buffer = ExAllocatePoolWithTag(PagedPool, dwSize, TAG_FONT);
|
||||||
|
if (!LoadFont.Buffer)
|
||||||
|
{
|
||||||
|
*pNumAdded = 0;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
memcpy(LoadFont.Buffer, Buffer, dwSize);
|
||||||
|
|
||||||
LoadFont.pFileName = NULL;
|
LoadFont.pFileName = NULL;
|
||||||
LoadFont.Buffer = Buffer;
|
|
||||||
LoadFont.BufferSize = dwSize;
|
LoadFont.BufferSize = dwSize;
|
||||||
LoadFont.Characteristics = FR_PRIVATE | FR_NOT_ENUM;
|
LoadFont.Characteristics = FR_PRIVATE | FR_NOT_ENUM;
|
||||||
RtlInitUnicodeString(&LoadFont.RegValueName, NULL);
|
RtlInitUnicodeString(&LoadFont.RegValueName, NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue