Closed
Bug 328218
Opened 19 years ago
Closed 19 years ago
don't allow creating multiple io services
Categories
(Core :: Networking, defect, P1)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla1.8.1
People
(Reporter: Biesinger, Assigned: Biesinger)
Details
(Keywords: fixed1.8.1)
Attachments
(1 file)
2.59 KB,
patch
|
darin.moz
:
review+
darin.moz
:
superreview+
darin.moz
:
approval-branch-1.8.1+
|
Details | Diff | Splinter Review |
Some mailnews code was using createInstance on the IO service. Now that the destructor clears out gIOService, this was a pretty bad thing. We should prevent this kind of crash.
Assignee | ||
Comment 1•19 years ago
|
||
Attachment #212811 -
Flags: superreview?(darin)
Attachment #212811 -
Flags: review?(darin)
Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla1.8.1
Assignee | ||
Comment 2•19 years ago
|
||
(bug 328219 was the mailnews crash)
Assignee | ||
Updated•19 years ago
|
Attachment #212811 -
Flags: approval-branch-1.8.1?(darin)
Comment 3•19 years ago
|
||
Comment on attachment 212811 [details] [diff] [review]
patch
When is the singleton cleared? Doesn't this leak gIOService?
Comment 4•19 years ago
|
||
Comment on attachment 212811 [details] [diff] [review]
patch
nevermind. I missed the fact that you return early in GetInstance when creating the IO service for the first time. Looks good!
r+sr+a=darin
Attachment #212811 -
Flags: superreview?(darin)
Attachment #212811 -
Flags: superreview+
Attachment #212811 -
Flags: review?(darin)
Attachment #212811 -
Flags: review+
Attachment #212811 -
Flags: approval-branch-1.8.1?(darin)
Attachment #212811 -
Flags: approval-branch-1.8.1+
Assignee | ||
Comment 5•19 years ago
|
||
yeah, I initially had a single addref in that function, but it is important to addref before calling init so having two seemed easiest.
Comment 6•19 years ago
|
||
s/NULL/nsnull/ perhaps?
Comment 7•19 years ago
|
||
With a build including this patch, all the crashing hangs etc. using Forecastfox Enhanced 0.8.5.0.1 are resolved.
Assignee | ||
Comment 8•19 years ago
|
||
that's still a bug in the extension though.
Assignee | ||
Comment 9•19 years ago
|
||
fixed on trunk and the 1.8 branch, with nsnull
You need to log in
before you can comment on or make changes to this bug.
Description
•