Skip to content

[ENHANCEMENT] Modernize Memory Management using RAII and Smart Pointers #4

@KyxCy98

Description

@KyxCy98

The previous implementation relied on manual object instantiation which increases the risk of memory leaks and pointer mismanagement.

Replaced raw pointers with std::unique_ptr for Scanner and Logger objects.

Implemented RAII (Resource Acquisition Is Initialization) to ensure automatic cleanup when objects go out of scope.

Decoupled the Logger from the Start class via constructor injection for better testability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions