Skip to content

fix: Use unique_ptr for Lua testInterface - #871

Open
jprzimba wants to merge 1 commit into
mainfrom
fix-testinterface
Open

fix: Use unique_ptr for Lua testInterface#871
jprzimba wants to merge 1 commit into
mainfrom
fix-testinterface

Conversation

@jprzimba

@jprzimba jprzimba commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Convert LuaEnvironment::testInterface from a raw pointer to std::unique_ptr, construct it with std::make_unique in getTestInterface(), and return the raw pointer via get(). Remove an empty destructor check and perform a small destructor/cleanup tweak. Modernizes ownership, prevents leaks, and clarifies lifetime management.

Convert LuaEnvironment::testInterface from a raw pointer to std::unique_ptr, construct it with std::make_unique in getTestInterface(), and return the raw pointer via get(). Remove an empty destructor check and perform a small destructor/cleanup tweak. Modernizes ownership, prevents leaks, and clarifies lifetime management.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant