Closed
Bug 953398
Opened 11 years ago
Closed 10 years ago
MozMillDropList.prototype.select causes memory leak
Categories
(Testing Graveyard :: Mozmill, defect)
Testing Graveyard
Mozmill
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: arai, Assigned: arai)
Details
(Whiteboard: [mozmill-2.0.4])
Attachments
(1 file)
1.25 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release) Build ID: 20131216183647 Actual results: MozMillDropList.prototype.select() stores array of menuitem elements into a global "menuitems" variable. So it holds reference to them until I call select() again for other element. Expected results: "menuitem" elements should be stored into a local variable, and reference to them should be freed when leaving select() function.
Comment 1•10 years ago
|
||
Thank you Tooro for finding this issue, and for the attached patch! This indeed slipped through review when the new code has been landed. I will have a look at the patch in a bit. As a hint you should add a reviewer in the future, so you will get the feedback and the patch can be landed.
Assignee: nobody → arai_a
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Updated•10 years ago
|
Attachment #8351693 -
Flags: review?(hskupin)
Comment 2•10 years ago
|
||
Comment on attachment 8351693 [details] [diff] [review] 0001-store-menuitems-into-local-variable.patch Review of attachment 8351693 [details] [diff] [review]: ----------------------------------------------------------------- This looks good and makes totally sense. Code is also well aligned. You get my r+. Just one hint for the future, whenever you upload a patch please use a commit message like the following for the patch: 'Bug XYZ - Description. r=hskupin'.
Attachment #8351693 -
Flags: review?(hskupin) → review+
Comment 3•10 years ago
|
||
Landed the patch as: https://github.com/mozilla/mozmill/commit/70803a2fdd57971a34b3f436818e0649a00c4365 (master) https://github.com/mozilla/mozmill/commit/cd3bdd9bcef6232b4798606e211a1e9641d6b8f7 (hotfix-2.0) Tooru, if you find something else please let us know! Also if you want to help with some other features or bug fixes. We would appreciate your help and also have some challenging tasks.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [mozmill-2.0.4]
Assignee | ||
Comment 4•10 years ago
|
||
Thank you for letting me know guidelines :)
Updated•8 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•