From: Mathieu Desnoyers Date: Sat, 21 May 2011 21:48:22 +0000 (-0400) Subject: Add missing reference to variant X-Git-Tag: v0.1~36 X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;ds=sidebyside;h=07fdca67c0924ab6adf5eebad88473f71b6bf9c3;p=babeltrace.git Add missing reference to variant Signed-off-by: Mathieu Desnoyers --- diff --git a/types/variant.c b/types/variant.c index 35e00c19..30ef3d8a 100644 --- a/types/variant.c +++ b/types/variant.c @@ -100,6 +100,7 @@ struct declaration_variant * variant_declaration = g_new(struct declaration_variant, 1); declaration = &variant_declaration->p; variant_declaration->untagged_variant = untagged_variant; + declaration_ref(&untagged_variant->p); variant_declaration->tag_name = g_array_new(FALSE, TRUE, sizeof(GQuark)); append_scope_path(tag, variant_declaration->tag_name); declaration->id = CTF_TYPE_VARIANT;