(IN-127960) Memory leak in UnityEventBase.s_UnityEvents

Using components that have UnityEvent’s, such as the Button component that features OnClick events, causes a memory leak, because these events seem to be added to a static list where they’re never removed from again.

The UnityEngine.Events.UnityEventBase.s_UnityEvents list grows infinitely. See bug-report IN-127960

2 Likes

Thanks for the report @Peter77.

Just to be clear, posting on Discussions is not considered bug reporting. No need to add the sweepstakes tag when you talk about bugs here.

1 Like

Thank you for letting me know. I have removed the tag. :slightly_smiling_face:

I have the same problem. Is there an official bug to track?

Thanks
Jus

The issue also occurs in Unity 6000.3, I hope it’s not only going to be fixed in 6.5 :crossed_fingers:

1 Like