Fix: do not set event's parent to a non-writer stream
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 24 Feb 2016 00:43:47 +0000 (19:43 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 24 Feb 2016 20:42:28 +0000 (15:42 -0500)
commitcacf314785b049b29ac1196c28086c99df396280
tree8ef475bce1e2e537c674d4b4bd58245e576208cb
parent37f301682345ca58a078ba6bcd131fd0030fed0c
Fix: do not set event's parent to a non-writer stream

Since a non-writer stream does not know the events that are
associated to it, an event with a non-writer stream parent can
never be destroyed.

Fix this by setting a stream parent if the stream is a writer
stream, and otherwise by using the event's packet's stream.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/event.c
This page took 0.024327 seconds and 4 git commands to generate.