Take ownership of the magnet metadata object

Nothing freed the bencode map the meta download built.
This commit is contained in:
noctuum
2026-09-16 18:16:32 +05:00
committed by Jari Sundell
parent 8423803b6e
commit da9606bfae
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ public:
// Temporary, find a better place for this.
void try_create_download(const std::string& uri, int flags, const command_list_type& commands);
void try_create_download_expand(const std::string& uri, int flags, command_list_type commands = command_list_type());
void try_create_download_from_meta_download(torrent::Object* bencode, const std::string& metafile);
void try_create_download_from_meta_download(std::unique_ptr<torrent::Object> bencode, const std::string& metafile);
private:
void create_http(const std::string& uri);