core: error: rename b_error_release to b_error_discard

This commit is contained in:
2025-11-04 10:03:10 +00:00
parent 5c6030488b
commit 6b65727535
3 changed files with 3 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ struct _b_object *b_object_create(b_type type)
struct _b_object *out = NULL;
b_result result = b_object_instantiate(type_reg, &out);
if (b_result_is_error(result)) {
b_error_release(result);
b_error_discard(result);
return NULL;
}