1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-14 09:44:51 +01:00

Delete mimedata when returning early

This commit is contained in:
Jonas Kvinge 2021-08-25 02:38:58 +02:00
parent dad62faf88
commit 709a706853

View File

@ -1243,7 +1243,10 @@ QMimeData *Playlist::mimeData(const QModelIndexList &indexes) const {
}
QBuffer buf;
if (!buf.open(QIODevice::WriteOnly)) return nullptr;
if (!buf.open(QIODevice::WriteOnly)) {
delete mimedata;
return nullptr;
}
QDataStream stream(&buf);
const Playlist *self = this;