Actions
Bug #3911
closedMemory leak in WCanvasPaintDevice
Start date:
03/22/2015
Due date:
% Done:
0%
Estimated time:
Description
fontMetrics_ have to delete. Patch included.
WTextItem WCanvasPaintDevice::measureText(const WString& text, double maxWidth,
bool wordWrap)
{
if (!fontMetrics_)
fontMetrics_ = new ServerSideFontMetrics();
return fontMetrics_->measureText(painter()->font(), text, maxWidth, wordWrap);
}
WFontMetrics WCanvasPaintDevice::fontMetrics()
{
if (!fontMetrics_)
fontMetrics_ = new ServerSideFontMetrics();
return fontMetrics_->fontMetrics(painter()->font());
}
Files
Updated by Koen Deforche over 9 years ago
- Status changed from New to InProgress
- Assignee set to Benoit Daccache
- Target version set to 3.3.4
The problem diagnosis looks right to me.
Updated by Benoit Daccache over 9 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche over 9 years ago
- Status changed from Resolved to Closed
Actions