From: Julien Desfossez Date: Tue, 24 Jul 2012 18:04:01 +0000 (-0400) Subject: Fix: iterator set_pos X-Git-Tag: v1.0.0-rc5~46 X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=6fabd7afe089a4e92b80f8a278fd670fb8698970;hp=6fabd7afe089a4e92b80f8a278fd670fb8698970;p=babeltrace.git Fix: iterator set_pos Iterating over all the streams of the trace_collection was a mistake since we could not identify the end of the streams (so we would always save the position of the last event). When we save the new position, we now iterate over each stream active in a copy of the current heap to save their position. That way we don't save the position for streams read entirely. Fixes: #293 Fixes: #296 [ Edit by Mathieu Desnoyers: fix memory leaks on errors ] Signed-off-by: Julien Desfossez Signed-off-by: Mathieu Desnoyers ---