Project

General

Profile

Bug #3911

Memory leak in WCanvasPaintDevice

Added by Sandor Balogh over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Benoit Daccache
Target version:
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

WCanvasPaintDevice.patch (736 Bytes) WCanvasPaintDevice.patch Sandor Balogh, 03/22/2015 03:03 PM

Also available in: Atom PDF