Do I need to discconect an actor's connected signals, before I destroy that actor?

So I’ve read the Tips on memory management to cleanup after my extension. I wondered if I need to disconnect an actor’s signals before destroying it?

For ex. I have this code:

someWidget.connect("key-press-event", () => something = "Blah");

and later I call someWidget.destroy(); Do I need to disconnect the signal before destroying someWidget?

Typically you do not need to disconnect signals on such an object, as they will be automatically be disconnected when the actor is destroyed.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.