Skip to content

Commit

Permalink
MoodbarItemDelegate: Remove delete of data
Browse files Browse the repository at this point in the history
Memory is deleted in QCache::insert
  • Loading branch information
jonaski committed Jan 17, 2025
1 parent d73cbc3 commit 726c105
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/moodbar/moodbaritemdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 726c105

Please sign in to comment.