mirror of
https://github.com/boostorg/exception.git
synced 2025-07-21 16:32:05 +02:00
Potential leak caused by previous commit.
[SVN r59370]
This commit is contained in:
@ -131,6 +131,9 @@ boost
|
|||||||
mutable std::string diagnostic_info_str_;
|
mutable std::string diagnostic_info_str_;
|
||||||
mutable int count_;
|
mutable int count_;
|
||||||
|
|
||||||
|
error_info_container_impl( error_info_container_impl const & );
|
||||||
|
error_info_container_impl & operator=( error_info_container const & );
|
||||||
|
|
||||||
void
|
void
|
||||||
add_ref() const
|
add_ref() const
|
||||||
{
|
{
|
||||||
@ -144,12 +147,14 @@ boost
|
|||||||
delete this;
|
delete this;
|
||||||
}
|
}
|
||||||
|
|
||||||
refcount_ptr<exception_detail::error_info_container>
|
refcount_ptr<error_info_container>
|
||||||
clone() const
|
clone() const
|
||||||
{
|
{
|
||||||
refcount_ptr<exception_detail::error_info_container> c;
|
refcount_ptr<error_info_container> p;
|
||||||
c.adopt(new exception_detail::error_info_container_impl(*this));
|
error_info_container_impl * c=new error_info_container_impl;
|
||||||
return c;
|
p.adopt(c);
|
||||||
|
c->info_ = info_;
|
||||||
|
return p;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user