Commit 0817891c authored by Christian Esken's avatar Christian Esken
Browse files

Fix memory leaks

CCBUGS: 309464
parent 15765295
......@@ -132,6 +132,8 @@ KMixWindow::KMixWindow(bool invisible) :
KMixWindow::~KMixWindow()
{
ControlManager::instance().removeListener(this);
delete osdWidget;
// -1- Cleanup Memory: clearMixerWidgets
while (m_wsMixers->count() != 0)
{
......
......@@ -158,6 +158,7 @@ void OSDWidget::themeUpdated()
if (!Plasma::Theme::defaultTheme()->imagePath("icons/audio").isEmpty()) {
QFontMetrics fm(m_volumeLabel->font());
iconSize = QSize(fm.height(), fm.height());
// Leak prio=low The old Plasma::Svg is not freed on a themeUpdated(), also it is not freed in the destructor
Plasma::Svg *svgIcon = new Plasma::Svg(this);
svgIcon->setImagePath("icons/audio");
svgIcon->setContainsMultipleImages(true);
......
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