Closed Bug 711536 Opened 14 years ago Closed 14 years ago

finalize statements and close connection

Categories

(Toolkit :: Downloads API, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: espindola, Assigned: espindola)

References

Details

Attachments

(1 file)

No description provided.
Comment on attachment 582321 [details] [diff] [review] finalize statements and close connection Review of attachment 582321 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/components/downloads/nsDownloadManager.cpp @@ +1954,5 @@ > + > + mGetIdsForURIStatement->Finalize(); > + mUpdateDownloadStatement->Finalize(); > + mozilla::DebugOnly<nsresult> rv = mDBConn->Close(); > + MOZ_ASSERT(NS_SUCCEEDED(rv)); please just set the statements to nsnull and add the usual comment like // Null statements to finalize them. apart that looks ok, it's a bit hard to figure out if someone is using the provided DBConnection for async work, I couldn't find any.
Attachment #582321 - Flags: review?(mak77) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Depends on: 713172
Depends on: 713140
Depends on: 714627
For reference, this was uplifted to Aurora (seemingly without any approval here?) in http://hg.mozilla.org/releases/mozilla-aurora/rev/64a62ab8cf98, and backed out to un-regress bug 713172 in http://hg.mozilla.org/releases/mozilla-aurora/rev/cd135c7ca5af.
(In reply to Josh Matthews [:jdm] from comment #5) > For reference, this was uplifted to Aurora (seemingly without any approval > here?) IIRC it was just part of the merge from central to aurora on the merge day. Btw, moving TM to 12
Target Milestone: mozilla11 → mozilla12
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: