зеркало из https://github.com/mozilla/pjs.git
Bug 711536 - finalize statements and close connection. r=mak.
This commit is contained in:
Родитель
f3bce4e03e
Коммит
6f86a3b302
|
@ -1951,6 +1951,12 @@ nsDownloadManager::Observe(nsISupports *aSubject,
|
|||
// aborted downloads if the user's retention policy specifies it.
|
||||
if (GetRetentionBehavior() == 1)
|
||||
CleanUp();
|
||||
|
||||
// Null statements to finalize them.
|
||||
mGetIdsForURIStatement = nsnull;
|
||||
mUpdateDownloadStatement = nsnull;
|
||||
mozilla::DebugOnly<nsresult> rv = mDBConn->Close();
|
||||
MOZ_ASSERT(NS_SUCCEEDED(rv));
|
||||
} else if (strcmp(aTopic, "quit-application-requested") == 0 &&
|
||||
currDownloadCount) {
|
||||
nsCOMPtr<nsISupportsPRBool> cancelDownloads =
|
||||
|
|
Загрузка…
Ссылка в новой задаче