Closed Bug 926070 Opened 11 years ago Closed 11 years ago

Addref CacheFileIOManager while using it in its static methods

Categories

(Core :: Networking: Cache, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: michal, Assigned: michal)

References

(Blocks 1 open bug)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Attached patch fix (deleted) — Splinter Review
No description provided.
Attachment #816247 - Flags: review?(honzab.moz)
Comment on attachment 816247 [details] [diff] [review] fix Review of attachment 816247 [details] [diff] [review]: ----------------------------------------------------------------- One way, or (IMO better) to let any object using it just keep it a member. Like CacheFile::CacheFile() : mManager(gIOManger) { .. }. It's safer. Up to you. I believe I have some places this needs to be ensured for the top level service as well. I'll audit and if needed report a bug. Btw, when you define AddRef and Release using NS_IMPL_ISUPPORTSn you don't need (you shouldn't) MOZ_COUNT_CTOR/DTOR.
Attachment #816247 - Flags: review?(honzab.moz) → review+
Assignee: nobody → michal.novotny
Blocks: cache2enable
Status: NEW → ASSIGNED
[ No longer blocks enabling cache2, expected to be fixed after cache2 is on ]
No longer blocks: cache2enable
Attachment #816247 - Flags: checkin+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: