Project

General

Profile

Bug #3911 ยป WCanvasPaintDevice.patch

Sandor Balogh, 03/22/2015 03:03 PM

View differences:

src/Wt/WCanvasPaintDevice
49 49
  WCanvasPaintDevice(const WLength& width, const WLength& height,
50 50
		     WObject *parent = 0,
51 51
		     bool paintUpdate = false);
52
  virtual ~WCanvasPaintDevice();
52 53

  
53 54
  virtual WFlags<FeatureFlag> features() const;
54 55
  virtual void setChanged(WFlags<ChangeFlag> flags);
55
-- a/src/Wt/WCanvasPaintDevice.C
56
++ b/src/Wt/WCanvasPaintDevice.C
......
113 113
  }
114 114
}
115 115

  
116
WCanvasPaintDevice::~WCanvasPaintDevice()
117
{
118
    if(fontMetrics_)
119
	delete fontMetrics_;
120
}
121

  
122

  
116 123
WFlags<WPaintDevice::FeatureFlag> WCanvasPaintDevice::features() const
117 124
{
118 125
  if (ServerSideFontMetrics::available())
    (1-1/1)