jildertviet / JFixLib

Library to control multiple light fixtures with the same codebase
0 stars 0 forks source link

lastAdded ptr in Event should be set to null #8

Closed jildertviet closed 7 months ago

jildertviet commented 8 months ago

When an Event is deleted, it should set this pointer to null. Also: when a new Event is added, make sure it is the only one pointing to this. (Otherwise, Event A may set the pointer to null, when B is newer and still alive)

jildertviet commented 7 months ago

Don't use lastAdded at all? Only access JEvents via their ID.

jildertviet commented 7 months ago

It's not found anywhere in the code, so only lastAddedID is used, which is OK.