From ecc7d670c1fe03801232d15c6d1c46143d9ba314 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Fri, 1 Mar 2019 20:44:40 +0100 Subject: [PATCH] audioplayer: fix memleak Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/b520aa4827c68225aac7b90c7ec656b8682c7a19 Author: Jacek Jendrzej Date: 2019-03-01 (Fri, 01 Mar 2019) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/audioplayer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/audioplayer.cpp b/src/gui/audioplayer.cpp index e247398b4..ed97be8c6 100644 --- a/src/gui/audioplayer.cpp +++ b/src/gui/audioplayer.cpp @@ -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; }