From 96ec764c4ad31e3d66782775fcc6885ad0818111 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 5 Mar 2012 05:06:57 -0600 Subject: Don't copy the next pointer in element_t's copy ctor --- src/format.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/format.cc') diff --git a/src/format.cc b/src/format.cc index 97dcfb22..f16b4ba9 100644 --- a/src/format.cc +++ b/src/format.cc @@ -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"); } -- cgit v1.2.3