mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Bug 834995 - Fix race condition in mozStorageConnection.cpp. r=mak77
This commit is contained in:
parent
022b77f0ba
commit
9b9ce55e9d
@ -1054,6 +1054,7 @@ Connection::Clone(bool aReadOnly,
|
||||
}
|
||||
|
||||
// Copy any functions that have been added to this connection.
|
||||
SQLiteMutexAutoLock lockedScope(sharedDBMutex);
|
||||
(void)mFunctions.EnumerateRead(copyFunctionEnumerator, clone);
|
||||
|
||||
NS_ADDREF(*_connection = clone);
|
||||
|
Loading…
x
Reference in New Issue
Block a user