Fix a memory leak in X11DRV_GetTextExtentPoint.

This commit is contained in:
Gerard Patel 2000-09-12 23:34:30 +00:00 committed by Alexandre Julliard
parent 5ba91b691f
commit 0ca52b2e42
1 changed files with 1 additions and 1 deletions

View File

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