audioplayer: fix memleak

This commit is contained in:
Jacek Jendrzej
2019-03-01 20:44:40 +01:00
parent f3d71be4a5
commit ffcda7c304

View File

@@ -1842,6 +1842,7 @@ void CAudioPlayerGui::paintCover()
cover_object->paint(); cover_object->paint();
m_cover_width = cover_object->getWidth() + OFFSET_INNER_MID; 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) if (m_detailsline != NULL)
{ {
m_detailsline->kill(); m_detailsline->kill();
delete m_detailsline;
m_detailsline = NULL; m_detailsline = NULL;
} }