Commit 585a66a4 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winex11: Avoid memory leaks (coverity).

parent 42f791cc
......@@ -2400,6 +2400,7 @@ static BOOL X11DRV_CLIPBOARD_ReadProperty(Display *display, Window w, Atom prop,
if (!tmp)
{
HeapFree(GetProcessHeap(), 0, buf);
HeapFree(GetProcessHeap(), 0, prop_data);
return FALSE;
}
......
......@@ -1405,9 +1405,9 @@ static void UploadGlyph(struct xrender_physdev *physDev, int glyph, AA_Type form
pXRenderAddGlyphs(gdi_display, formatEntry->glyphset, &gid, &gi, 1,
buflen ? buf : zero, buflen ? buflen : sizeof(zero));
HeapFree(GetProcessHeap(), 0, buf);
}
HeapFree(GetProcessHeap(), 0, buf);
formatEntry->gis[glyph] = gi;
}
......
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