Add missing reference to variant
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 21 May 2011 21:48:22 +0000 (17:48 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 21 May 2011 21:48:22 +0000 (17:48 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
types/variant.c

index 35e00c192d3fd353de7127f41a1721f42487f32d..30ef3d8aeca45954a13e0cb86b13ba8e2fd97799 100644 (file)
@@ -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;
This page took 0.049436 seconds and 4 git commands to generate.