DayZ-CommunityFramework icon indicating copy to clipboard operation
DayZ-CommunityFramework copied to clipboard

EventArgs cleanup deleting data

Open Arkensor opened this issue 3 years ago • 0 comments

If module events modify data we pass back into moddable events like OnClientNewEvent and the event args are forcefully deleted they can null other mods data.

e.g. player = args.Player

image

We need a better way to not cause memory leaks but also not delete data somewhere. Strong ref / autoptr management and not deleting manually or having a rolling instance image

Arkensor avatar Feb 20 '22 15:02 Arkensor