From: Jérémie Galarneau Date: Thu, 2 Jul 2015 18:38:08 +0000 (-0400) Subject: Docs: A stream has no ownership of its trace X-Git-Tag: v2.0.0-pre1~1222 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=a4031f6749758977b2934b13fc1fb53a48ab2dfe Docs: A stream has no ownership of its trace Add a comment to explain why the trace's refcount is not incremented when setting a stream's trace. Signed-off-by: Jérémie Galarneau --- diff --git a/formats/ctf/ir/stream.c b/formats/ctf/ir/stream.c index e89b1fcf..047fc292 100644 --- a/formats/ctf/ir/stream.c +++ b/formats/ctf/ir/stream.c @@ -270,6 +270,7 @@ struct bt_ctf_stream *bt_ctf_stream_create( goto end; } + /* A stream has no ownership of its trace (weak ptr) */ stream->trace = trace; bt_ctf_ref_init(&stream->ref_count); stream->packet_context = bt_ctf_field_create(