winex11: Avoid memory leaks (coverity).

This commit is contained in:
André Hentschel 2012-10-30 20:07:22 +01:00 committed by Alexandre Julliard
parent 42f791ccd5
commit 585a66a463
2 changed files with 2 additions and 1 deletions

View File

@ -2400,6 +2400,7 @@ static BOOL X11DRV_CLIPBOARD_ReadProperty(Display *display, Window w, Atom prop,
if (!tmp) if (!tmp)
{ {
HeapFree(GetProcessHeap(), 0, buf); HeapFree(GetProcessHeap(), 0, buf);
HeapFree(GetProcessHeap(), 0, prop_data);
return FALSE; return FALSE;
} }

View File

@ -1405,9 +1405,9 @@ static void UploadGlyph(struct xrender_physdev *physDev, int glyph, AA_Type form
pXRenderAddGlyphs(gdi_display, formatEntry->glyphset, &gid, &gi, 1, pXRenderAddGlyphs(gdi_display, formatEntry->glyphset, &gid, &gi, 1,
buflen ? buf : zero, buflen ? buflen : sizeof(zero)); buflen ? buf : zero, buflen ? buflen : sizeof(zero));
HeapFree(GetProcessHeap(), 0, buf);
} }
HeapFree(GetProcessHeap(), 0, buf);
formatEntry->gis[glyph] = gi; formatEntry->gis[glyph] = gi;
} }