db/simple/ExportedSong: check src.OwnsTag(), not this->OwnsTag()
this->OwnsTag() accesses fields that are not yet initialized.
This commit is contained in:
parent
64fa76c568
commit
5355335f19
2
NEWS
2
NEWS
|
@ -1,6 +1,8 @@
|
|||
ver 0.22.10 (not yet released)
|
||||
* protocol
|
||||
- support "albumart" for virtual tracks in CUE sheets
|
||||
* database
|
||||
- simple: fix crash bug
|
||||
|
||||
ver 0.22.9 (2021/06/23)
|
||||
* database
|
||||
|
|
|
@ -53,7 +53,7 @@ public:
|
|||
moved-from instance also owned the Tag
|
||||
which its LightSong::tag field refers
|
||||
to */
|
||||
OwnsTag() ? tag_buffer : src.tag),
|
||||
src.OwnsTag() ? tag_buffer : src.tag),
|
||||
tag_buffer(std::move(src.tag_buffer)) {}
|
||||
|
||||
ExportedSong &operator=(ExportedSong &&) = delete;
|
||||
|
|
Loading…
Reference in New Issue