Closed Bug 337044 Opened 19 years ago Closed 19 years ago

Search engine Manager leaks an observer when canceled

Categories

(Firefox :: Search, defect)

2.0 Branch
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 2 alpha3

People

(Reporter: regis.caspar+bz, Assigned: regis.caspar+bz)

Details

(Keywords: fixed1.8.1, memory-leak)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060507 Minefield/3.0a1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060507 Minefield/3.0a1 The new search engine manager leaks an observer when canceled. Reproducible: Always Steps to Reproduce: 1. Open Search Engine Manager 2. Click Cancel Actual Results: An observer is leaked Expected Results: No leak
This patch add a onCancel function which remove the leaked observer
Attachment #221226 - Flags: review?
Keywords: mlk
Confirming with dbarons leak detection extension
Status: UNCONFIRMED → NEW
Ever confirmed: true
Eek, good catch!
Assignee: nobody → regis.caspar+bz
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → Firefox 2 beta1
Status: NEW → ASSIGNED
Summary: [mlk] Search engine Manager leaks an observer when canceled → Search engine Manager leaks an observer when canceled
Version: unspecified → 2.0 Branch
Comment on attachment 221226 [details] [diff] [review] Fix by adding a onCancel function This doesn't need to land before the alpha, but marking a181? so I don't forget it.
Attachment #221226 - Flags: review?
Attachment #221226 - Flags: review+
Attachment #221226 - Flags: approval-branch-1.8.1?(mconnor)
(In reply to comment #3) > Eek, good catch! All merits goes to David Baron and his leaks monitor extension :)
Attachment #221226 - Flags: approval-branch-1.8.1?(mconnor) → approval-branch-1.8.1+
mozilla/browser/components/search/content/engineManager.xul 1.2 mozilla/browser/components/search/content/engineManager.js 1.2
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed (1.8 branch)]
(In reply to comment #6) > mozilla/browser/components/search/content/engineManager.xul 1.2 > mozilla/browser/components/search/content/engineManager.js 1.2 Verified fixed on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060513 Minefield/3.0a1 ID:2006051304 [cairo]
Thanks for the patch, Regis!
Status: RESOLVED → VERIFIED
(In reply to comment #8) > Thanks for the patch, Regis! No problem :)
mozilla/browser/components/search/content/engineManager.xul 1.1.2.3 mozilla/browser/components/search/content/engineManager.js 1.1.2.3
Keywords: fixed1.8.1
Whiteboard: [checkin needed (1.8 branch)]
Target Milestone: Firefox 2 beta1 → Firefox 2 alpha3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: