X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Ftrace-ir%2Fclock-class.c;h=0b449e277ad2e4b8f5911373de10a55c822d60ff;hb=c4f23e30bf67d2523163614bc9461d84cbe1ae80;hp=e982ad7f0fafc74e48ba733db4635508f15c1d4e;hpb=c6962c968f7467ce8f7e880e7de3797139314f9f;p=babeltrace.git diff --git a/src/lib/trace-ir/clock-class.c b/src/lib/trace-ir/clock-class.c index e982ad7f..0b449e27 100644 --- a/src/lib/trace-ir/clock-class.c +++ b/src/lib/trace-ir/clock-class.c @@ -35,6 +35,7 @@ #include #include "compat/string.h" #include +#include #include "lib/object.h" #include "common/assert.h" #include "lib/func-status.h" @@ -338,9 +339,9 @@ void bt_clock_class_set_user_attributes( BT_ASSERT_PRE(user_attributes->type == BT_VALUE_TYPE_MAP, "User attributes object is not a map value object."); BT_ASSERT_PRE_DEV_CLOCK_CLASS_HOT(clock_class); - bt_object_put_no_null_check(clock_class->user_attributes); + bt_object_put_ref_no_null_check(clock_class->user_attributes); clock_class->user_attributes = (void *) user_attributes; - bt_object_get_no_null_check(clock_class->user_attributes); + bt_object_get_ref_no_null_check(clock_class->user_attributes); } void bt_clock_class_get_ref(const struct bt_clock_class *clock_class)