Page MenuHomeFeedback Tracker

Add RestContext::Dispose()
Assigned, NormalPublic

Description

I am getting a rest context in my game mode that should be cleaned up after it ends. On dedicated servers when they get killed that is not a problem but for people who use it in single-player/game host and return back to the main menu and go in again etc this *could* lead to many unused contexts leaking memory over time. Probably not much, BUT I would still like to be able to properly dispose of them, for the sake of doing it properly.

Manually calling delete on them seems to crash the game. They are not managed so they do not disappear after the usage scope/holder class dtors.

Please add a way to close and dispose of a rest context. e.g. RestContext::Dispose() or RestApi::DisposeContext(RestContext context).

Details

Severity
Minor
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General

Event Timeline

Arkensor created this task.Jun 9 2023, 3:56 PM
Geez changed the task status from New to Assigned.Jun 14 2023, 12:55 PM