Skip to content

Consolidate cleanup code into a separate "FinalizeDelete" routine #564

@jphickey

Description

@jphickey

Is your feature request related to a problem? Please describe.
All OSAL objects share a basically common pattern for finalization after creation and deletion. For creation the finalization was consolidated into a OS_ObjectIdFinalizeNew routine, but the deletion finalization is basically repeated as it only involved clearing a single global.

Describe the solution you'd like
Even though deletion is currently trivial, it is beneficial to consolidate this code as it could become less trivial, as in issue #540

Additional context
This was split from #540

This is a necessary prerequisite in order to implement any sort of common/generic handling without repeating the code everywhere. It also makes deletion more of a mirror-image of creation, which is really the way it should be.

Requester Info
Joseph Hickey, Vantage Systems, Inc.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions