mirror of https://github.com/schoebel/mars
infra: minor bracing improvements
This commit is contained in:
parent
c464645543
commit
d64135ff3a
|
@ -448,18 +448,16 @@ void generic_free(struct generic_object *object)
|
||||||
WRITE_ONCE(all_aspects[i], NULL);
|
WRITE_ONCE(all_aspects[i], NULL);
|
||||||
aspect_type = aspect->aspect_type;
|
aspect_type = aspect->aspect_type;
|
||||||
CHECK_PTR_NULL(aspect_type, done);
|
CHECK_PTR_NULL(aspect_type, done);
|
||||||
if (aspect_type->exit_fn) {
|
if (aspect_type->exit_fn)
|
||||||
aspect_type->exit_fn(aspect);
|
aspect_type->exit_fn(aspect);
|
||||||
}
|
|
||||||
if (aspect->shortcut)
|
if (aspect->shortcut)
|
||||||
continue;
|
continue;
|
||||||
brick_mem_free(aspect);
|
brick_mem_free(aspect);
|
||||||
atomic_dec(&object_layout->aspect_count);
|
atomic_dec(&object_layout->aspect_count);
|
||||||
}
|
}
|
||||||
free:
|
free:
|
||||||
if (object_type->exit_fn) {
|
if (object_type->exit_fn)
|
||||||
object_type->exit_fn(object);
|
object_type->exit_fn(object);
|
||||||
}
|
|
||||||
brick_mem_free(object);
|
brick_mem_free(object);
|
||||||
done: ;
|
done: ;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue