Arkensor/DayZ-CommunityFramework

EventArgs cleanup deleting data

Arkensor opened this issue · 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