mirror of
https://github.com/schoebel/mars
synced 2024-12-25 08:02:26 +00:00
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);
|
||||
aspect_type = aspect->aspect_type;
|
||||
CHECK_PTR_NULL(aspect_type, done);
|
||||
if (aspect_type->exit_fn) {
|
||||
if (aspect_type->exit_fn)
|
||||
aspect_type->exit_fn(aspect);
|
||||
}
|
||||
if (aspect->shortcut)
|
||||
continue;
|
||||
brick_mem_free(aspect);
|
||||
atomic_dec(&object_layout->aspect_count);
|
||||
}
|
||||
free:
|
||||
if (object_type->exit_fn) {
|
||||
if (object_type->exit_fn)
|
||||
object_type->exit_fn(object);
|
||||
}
|
||||
brick_mem_free(object);
|
||||
done: ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user