Index: trunk/willow/src/include/willow.h |
— | — | @@ -146,6 +146,7 @@ |
147 | 147 | basic_imstring(charT const *); |
148 | 148 | basic_imstring(charT const *, size_type); |
149 | 149 | basic_imstring(basic_imstring const &); |
| 150 | + ~basic_imstring(void); |
150 | 151 | |
151 | 152 | template<typename Sallocator> |
152 | 153 | basic_imstring(basic_string<charT, char_traits<charT>, Sallocator> const &); |
— | — | @@ -198,6 +199,13 @@ |
199 | 200 | typedef basic_imstring<char, pt_allocator<char> > imstring; |
200 | 201 | |
201 | 202 | template<typename charT, typename allocator> |
| 203 | +basic_imstring<charT, allocator>::~basic_imstring(void) |
| 204 | +{ |
| 205 | + if (_buf) |
| 206 | + _alloc.deallocate(_buf, _len); |
| 207 | +} |
| 208 | + |
| 209 | +template<typename charT, typename allocator> |
202 | 210 | basic_imstring<charT, allocator>::basic_imstring(void) |
203 | 211 | : _buf(NULL) |
204 | 212 | , _len(0) |