diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp index acb1414b0..d986d37b7 100644 --- a/src/deluge_core.cpp +++ b/src/deluge_core.cpp @@ -222,7 +222,7 @@ boost::filesystem::path const& save_path) entry e; e = bdecode(std::istream_iterator(in), std::istream_iterator()); - torrent_info t(e); + boost::intrusive_ptr t(new torrent_info(e)); entry resume_data; try