Don't copy the next pointer in element_t's copy ctor

This commit is contained in:
John Wiegley 2012-03-05 05:06:57 -06:00
parent eabd5c6a0c
commit 96ec764c4a

View file

@ -45,8 +45,7 @@ format_t::element_t::element_t(const element_t& elem)
type(elem.type),
min_width(elem.min_width),
max_width(elem.max_width),
data(elem.data),
next(elem.next ? new element_t(*elem.next) : NULL)
data(elem.data)
{
TRACE_CTOR(element_t, "copy");
}