Project

General

Profile

Actions

Bug #3911

closed

Memory leak in WCanvasPaintDevice

Added by Sandor Balogh over 9 years ago. Updated over 9 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
Actions #1

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.

Actions #2

Updated by Benoit Daccache over 9 years ago

  • Status changed from InProgress to Resolved
Actions #3

Updated by Koen Deforche over 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF