mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
audioplayer: fix memleak
This commit is contained in:
@@ -1842,6 +1842,7 @@ void CAudioPlayerGui::paintCover()
|
||||
cover_object->paint();
|
||||
|
||||
m_cover_width = cover_object->getWidth() + OFFSET_INNER_MID;
|
||||
delete cover_object;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1968,6 +1969,7 @@ void CAudioPlayerGui::paintDetailsLine(int pos)
|
||||
if (m_detailsline != NULL)
|
||||
{
|
||||
m_detailsline->kill();
|
||||
delete m_detailsline;
|
||||
m_detailsline = NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user