From 39e2e4d3dcaefc5fd54b72f8bff08954f1c74ba5 Mon Sep 17 00:00:00 2001 From: arvidn Date: Fri, 18 Oct 2019 04:32:25 +0200 Subject: [PATCH] fix torrent_info::swap --- ChangeLog | 2 ++ src/torrent_info.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 60e4aa1ea..53ee50421 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,5 @@ + * fixed bug in torrent_info::swap + 1.2.2 release * fix cases where the disable_hash_checks setting was not honored diff --git a/src/torrent_info.cpp b/src/torrent_info.cpp index 2070921e6..8d9cba88f 100644 --- a/src/torrent_info.cpp +++ b/src/torrent_info.cpp @@ -1028,6 +1028,10 @@ namespace { m_files.swap(ti.m_files); m_orig_files.swap(ti.m_orig_files); m_nodes.swap(ti.m_nodes); + m_similar_torrents.swap(ti.m_similar_torrents); + m_owned_similar_torrents.swap(ti.m_owned_similar_torrents); + m_collections.swap(ti.m_collections); + m_owned_collections.swap(ti.m_owned_collections); swap(m_info_hash, ti.m_info_hash); swap(m_creation_date, ti.m_creation_date); m_comment.swap(ti.m_comment);