MoodbarItemDelegate: Remove delete of data

Memory is deleted in QCache::insert
This commit is contained in:
Jonas Kvinge
2025-01-17 08:29:17 +01:00
parent d73cbc3a1d
commit 726c105ed6

View File

@@ -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();
}
}