MoodbarItemDelegate: Remove delete of data
Memory is deleted in QCache::insert
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user