Potential leak caused by previous commit.

[SVN r59370]
This commit is contained in:
Emil Dotchevski
2010-01-30 18:44:45 +00:00
parent 4ae002cbf8
commit 2dc075e6e8

View File

@ -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;
} }
}; };
} }