stl_deque.h (deque::erase()): Fix memory leak.
2001-11-16 Paolo Carlini <pcarlini@unitus.it> * include/bits/stl_deque.h (deque::erase()): Fix memory leak. From-SVN: r47103
This commit is contained in:
parent
7dd4ba48c4
commit
9c8e9f6296
@ -1,3 +1,7 @@
|
|||||||
|
2001-11-16 Paolo Carlini <pcarlini@unitus.it>
|
||||||
|
|
||||||
|
* include/bits/stl_deque.h (deque::erase()): Fix memory leak.
|
||||||
|
|
||||||
2001-11-16 Loren J. Rittle <ljrittle@acm.org>
|
2001-11-16 Loren J. Rittle <ljrittle@acm.org>
|
||||||
|
|
||||||
* docs/html/17_intro/howto.html (Thread-safety): Rename
|
* docs/html/17_intro/howto.html (Thread-safety): Rename
|
||||||
|
@ -900,7 +900,7 @@ deque<_Tp,_Alloc>::erase(iterator __first, iterator __last)
|
|||||||
copy_backward(_M_start, __first, __last);
|
copy_backward(_M_start, __first, __last);
|
||||||
iterator __new_start = _M_start + __n;
|
iterator __new_start = _M_start + __n;
|
||||||
_Destroy(_M_start, __new_start);
|
_Destroy(_M_start, __new_start);
|
||||||
_M_destroy_nodes(__new_start._M_node, _M_start._M_node);
|
_M_destroy_nodes(_M_start._M_node, __new_start._M_node);
|
||||||
_M_start = __new_start;
|
_M_start = __new_start;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user