Commit ac1af7ca authored by Julien Wintz's avatar Julien Wintz
Browse files

Fixing remaining memory leaks.

parent a9219c76
......@@ -4,9 +4,9 @@
* Copyright (C) 2008 - Julien Wintz, Inria.
* Created: Fri Mar 18 15:07:40 2011 (+0100)
* Version: $Id$
* Last-Updated: Tue Apr 3 16:09:00 2012 (+0200)
* By: tkloczko
* Update #: 45
* Last-Updated: Thu Nov 29 14:12:18 2012 (+0100)
* By: Julien Wintz
* Update #: 46
*/
/* Commentary:
......@@ -59,8 +59,11 @@ dtkColorGrid::dtkColorGrid(QWidget *parent) : QWidget(parent), d(new dtkColorGri
setMouseTracking(true);
}
dtkColorGrid::~dtkColorGrid()
dtkColorGrid::~dtkColorGrid(void)
{
delete d;
d = NULL;
}
QSize dtkColorGrid::minimumSizeHint() const
......
......@@ -4,9 +4,9 @@
* Copyright (C) 2008 - Julien Wintz, Inria.
* Created: Sun May 3 10:42:27 2009 (+0200)
* Version: $Id$
* Last-Updated: Wed May 16 10:54:00 2012 (+0200)
* Last-Updated: Thu Nov 29 14:11:15 2012 (+0100)
* By: Julien Wintz
* Update #: 1577
* Update #: 1579
*/
/* Commentary:
......@@ -227,6 +227,8 @@ dtkTagCloud::dtkTagCloud(QWidget *parent) : QTextBrowser(parent)
dtkTagCloud::~dtkTagCloud(void)
{
delete d;
d = NULL;
}
void dtkTagCloud::addTag(QString text, int count)
......@@ -347,6 +349,7 @@ void dtkTagCloud::render(void)
.arg(fontSize)
.arg(color));
}
cloud.append("</div>\n");
this->setHtml(cloud);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment