Commit 0ca52b2e authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Fix a memory leak in X11DRV_GetTextExtentPoint.

parent 5ba91b69
...@@ -421,10 +421,10 @@ BOOL X11DRV_GetTextExtentPoint( DC *dc, LPCWSTR str, INT count, ...@@ -421,10 +421,10 @@ BOOL X11DRV_GetTextExtentPoint( DC *dc, LPCWSTR str, INT count,
size->cx = fabs((x + dc->w.breakRem + count * dc->w.charExtra) * size->cx = fabs((x + dc->w.breakRem + count * dc->w.charExtra) *
dc->wndExtX / dc->vportExtX); dc->wndExtX / dc->vportExtX);
size->cy = fabs(y * dc->wndExtY / dc->vportExtY); size->cy = fabs(y * dc->wndExtY / dc->vportExtY);
HeapFree( GetProcessHeap(), 0, p );
} }
size->cx *= pfo->rescale; size->cx *= pfo->rescale;
size->cy *= pfo->rescale; size->cy *= pfo->rescale;
HeapFree( GetProcessHeap(), 0, p );
return TRUE; return TRUE;
} }
return FALSE; return FALSE;
......
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