diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-19 16:25:01 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-22 12:19:17 +0200 |
commit | c10e2aefdcab00e44c2c307e8b571c72fff8575b (patch) | |
tree | 569d73e3fdf8396c3c05d1c347769bc21e468b97 /dom/indexedDB | |
parent | 0c9570d81efd16be2cc50daef5b404cd05221fda (diff) | |
download | UXP-c10e2aefdcab00e44c2c307e8b571c72fff8575b.tar UXP-c10e2aefdcab00e44c2c307e8b571c72fff8575b.tar.gz UXP-c10e2aefdcab00e44c2c307e8b571c72fff8575b.tar.lz UXP-c10e2aefdcab00e44c2c307e8b571c72fff8575b.tar.xz UXP-c10e2aefdcab00e44c2c307e8b571c72fff8575b.zip |
Get RefPtr for IDBOpenDBRequest before using it. (DiD)
Diffstat (limited to 'dom/indexedDB')
-rw-r--r-- | dom/indexedDB/ActorsChild.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dom/indexedDB/ActorsChild.cpp b/dom/indexedDB/ActorsChild.cpp index c4fcceb90..30dc9b6da 100644 --- a/dom/indexedDB/ActorsChild.cpp +++ b/dom/indexedDB/ActorsChild.cpp @@ -2385,9 +2385,14 @@ BackgroundVersionChangeTransactionChild::RecvComplete(const nsresult& aResult) database->Close(); } + RefPtr<IDBOpenDBRequest> request = mOpenDBRequest; + MOZ_ASSERT(request); + mTransaction->FireCompleteOrAbortEvents(aResult); - mOpenDBRequest->SetTransaction(nullptr); + request->SetTransaction(nullptr); + request = nullptr; + mOpenDBRequest = nullptr; NoteComplete(); |