From 726c105ed6816a6d5aa747d148881ce49af0ea26 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 17 Jan 2025 08:29:17 +0100 Subject: [PATCH] MoodbarItemDelegate: Remove delete of data Memory is deleted in QCache::insert --- src/moodbar/moodbaritemdelegate.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/moodbar/moodbaritemdelegate.cpp b/src/moodbar/moodbaritemdelegate.cpp index f718aa665..cd3438140 100644 --- a/src/moodbar/moodbaritemdelegate.cpp +++ b/src/moodbar/moodbaritemdelegate.cpp @@ -119,7 +119,6 @@ QPixmap MoodbarItemDelegate::PixmapForIndex(const QModelIndex &idx, const QSize data = new Data; if (!data_.insert(url, data)) { qLog(Error) << "Could not insert moodbar data for URL" << url << "into cache"; - delete data; return QPixmap(); } }