Closed Bug 1813995 Opened 1 year ago Closed 1 year ago

Nullify `conn` for all Actors on destruction

Categories

(DevTools :: Framework, task)

task

Tracking

(firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Actor and Pool classes are both setting conn attribute on instantiation, but never clear it on destruction. If we happen to leak any of these instances, this will hold DevToolsServerConnection in memory as well.
It would be nice to always clear this reference on destroy.

A few classes weren't passing the conn object to Actor's constructor
and instead manually defining it.

Some others were having a duplicated _conn alias.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/00d324e0aacd
[devtools] Nullify conn for all Actors on destruction. r=jdescottes,devtools-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
Blocks: 1816635
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: