diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-19 16:25:01 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-19 16:25:01 +0200 |
commit | 15aff51ed922a54b02f638e6847f2fa040f7dd2c (patch) | |
tree | 1c44aff98314c67fd412eb2a79c6f74929d8a6fc | |
parent | bf2610c0cfc96327178a5d3d7121181c2f375f48 (diff) | |
download | UXP-15aff51ed922a54b02f638e6847f2fa040f7dd2c.tar UXP-15aff51ed922a54b02f638e6847f2fa040f7dd2c.tar.gz UXP-15aff51ed922a54b02f638e6847f2fa040f7dd2c.tar.lz UXP-15aff51ed922a54b02f638e6847f2fa040f7dd2c.tar.xz UXP-15aff51ed922a54b02f638e6847f2fa040f7dd2c.zip |
Get RefPtr for IDBOpenDBRequest before using it. (DiD)
-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(); |