mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-14 18:03:44 +01:00
Delete mimedata when returning early
This commit is contained in:
parent
dad62faf88
commit
709a706853
@ -1243,7 +1243,10 @@ QMimeData *Playlist::mimeData(const QModelIndexList &indexes) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QBuffer buf;
|
QBuffer buf;
|
||||||
if (!buf.open(QIODevice::WriteOnly)) return nullptr;
|
if (!buf.open(QIODevice::WriteOnly)) {
|
||||||
|
delete mimedata;
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
QDataStream stream(&buf);
|
QDataStream stream(&buf);
|
||||||
|
|
||||||
const Playlist *self = this;
|
const Playlist *self = this;
|
||||||
|
Loading…
Reference in New Issue
Block a user