Commit 5355335f authored by Max Kellermann's avatar Max Kellermann

db/simple/ExportedSong: check src.OwnsTag(), not this->OwnsTag()

this->OwnsTag() accesses fields that are not yet initialized.
parent 64fa76c5
ver 0.22.10 (not yet released) ver 0.22.10 (not yet released)
* protocol * protocol
- support "albumart" for virtual tracks in CUE sheets - support "albumart" for virtual tracks in CUE sheets
* database
- simple: fix crash bug
ver 0.22.9 (2021/06/23) ver 0.22.9 (2021/06/23)
* database * database
......
...@@ -53,7 +53,7 @@ public: ...@@ -53,7 +53,7 @@ public:
moved-from instance also owned the Tag moved-from instance also owned the Tag
which its LightSong::tag field refers which its LightSong::tag field refers
to */ to */
OwnsTag() ? tag_buffer : src.tag), src.OwnsTag() ? tag_buffer : src.tag),
tag_buffer(std::move(src.tag_buffer)) {} tag_buffer(std::move(src.tag_buffer)) {}
ExportedSong &operator=(ExportedSong &&) = delete; ExportedSong &operator=(ExportedSong &&) = delete;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment