audioplayer: fix memleak

Origin commit data
------------------
Branch: ni/coolstream
Commit: b520aa4827
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-03-01 (Fri, 01 Mar 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2019-03-01 20:44:40 +01:00
committed by vanhofen
parent 095c0123df
commit ecc7d670c1

View File

@@ -1837,6 +1837,7 @@ void CAudioPlayerGui::paintCover()
cover_object->paint();
m_cover_width = cover_object->getWidth() + OFFSET_INNER_MID;
delete cover_object;
}
}
}
@@ -1963,6 +1964,7 @@ void CAudioPlayerGui::paintDetailsLine(int pos)
if (m_detailsline != NULL)
{
m_detailsline->kill();
delete m_detailsline;
m_detailsline = NULL;
}