X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=lib%2Fvalues.c;h=ffe289c2bdeec5d44e3466619ebfbf0090866e60;hb=1248f5eaf4446fd890efc5d87a3e2bb4d25172f4;hp=d14bec8447a6473ecf8f226123ef1c4979d8c4f1;hpb=c8bbf8219235d1e8a9e04dc7b641210e6c93c02c;p=babeltrace.git diff --git a/lib/values.c b/lib/values.c index d14bec84..ffe289c2 100644 --- a/lib/values.c +++ b/lib/values.c @@ -130,6 +130,7 @@ static void bt_value_string_destroy(struct bt_value *object) { g_string_free(BT_VALUE_TO_STRING(object)->gstr, TRUE); + BT_VALUE_TO_STRING(object)->gstr = NULL; } static @@ -140,6 +141,7 @@ void bt_value_array_destroy(struct bt_value *object) * of putting each contained object. */ g_ptr_array_free(BT_VALUE_TO_ARRAY(object)->garray, TRUE); + BT_VALUE_TO_ARRAY(object)->garray = NULL; } static @@ -151,6 +153,7 @@ void bt_value_map_destroy(struct bt_value *object) * be destroyed anyway. */ g_hash_table_destroy(BT_VALUE_TO_MAP(object)->ght); + BT_VALUE_TO_MAP(object)->ght = NULL; } static