Project

General

Profile

Actions

Bug #3911

closed
SB BD

Memory leak in WCanvasPaintDevice

Bug #3911: Memory leak in WCanvasPaintDevice

Added by Sandor Balogh over 11 years ago. Updated over 11 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

KD Updated by Koen Deforche over 11 years ago Actions #1

  • 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.

BD Updated by Benoit Daccache over 11 years ago Actions #2

  • Status changed from InProgress to Resolved

KD Updated by Koen Deforche over 11 years ago Actions #3

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom