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:
parent
dad62faf88
commit
709a706853
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user