lib: trace IR, values: reset pointers to `NULL` on destruction
[babeltrace.git] / lib / trace-ir / attributes.c
index 68c83f5f1e23309277acf0f251c3bea628a1b8eb..44068de24c0e6387d457820447215e111d14c731 100644 (file)
@@ -71,7 +71,7 @@ BT_HIDDEN
 void bt_attributes_destroy(struct bt_private_value *attr_obj)
 {
        BT_LOGD("Destroying attributes object: addr=%p", attr_obj);
-       bt_object_put_ref(attr_obj);
+       BT_OBJECT_PUT_REF_AND_RESET(attr_obj);
 }
 
 BT_HIDDEN
This page took 0.024272 seconds and 4 git commands to generate.