Make sure the topview is deleted in the applethandle's dtor, and make goTopLevel always have a return value.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809157
This commit is contained in:
parent
cce4c58318
commit
8fd94a9931
@ -133,6 +133,9 @@ AppletHandle::~AppletHandle()
|
||||
|
||||
m_applet->update(); // re-render the background, now we've transformed the applet
|
||||
}
|
||||
if (m_topview) {
|
||||
delete m_topview;
|
||||
}
|
||||
}
|
||||
|
||||
Applet *AppletHandle::applet() const
|
||||
@ -312,6 +315,8 @@ bool AppletHandle::goTopLevel(const QPoint & pos) {
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user