Fix mem leak

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878992
This commit is contained in:
Laurent Montel 2008-11-02 11:39:25 +00:00
parent aaf39fc289
commit 0af4b7d132
2 changed files with 7 additions and 0 deletions

View File

@ -50,6 +50,11 @@ ToolTipContent::ToolTipContent(const ToolTipContent &other)
{
}
ToolTipContent::~ToolTipContent()
{
delete d;
}
ToolTipContent &ToolTipContent::operator=(const ToolTipContent &other)
{
*d = *other.d;

View File

@ -41,6 +41,8 @@ public:
/** Creates an empty Content */
ToolTipContent();
~ToolTipContent();
/** Copy constructor */
ToolTipContent(const ToolTipContent &other);