summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2019-08-08 16:44:51 +0300
committerwin7-7 <win7-7@users.noreply.github.com>2019-08-08 16:44:51 +0300
commit8b29b50972daa117531e389e36958bca597b9c75 (patch)
tree150ec42d7352ffd8d61dafb4397d89bcaa396d5e /image
parent7a7cb8952607ef0d432e3c3ef70c7704f90f715b (diff)
downloadaura-central-8b29b50972daa117531e389e36958bca597b9c75.tar.gz
Convert dom/base/nsImageLoadingContent.cpp to use AsyncOpen2 and followups along with it (1445670 and 1373780 part 2 and 3)
Convert dom/base/nsImageLoadingContent.cpp to use AsyncOpen2 and followups along with it (1445670 and 1373780 part 2 and 3)
Diffstat (limited to 'image')
-rw-r--r--image/imgLoader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/image/imgLoader.cpp b/image/imgLoader.cpp
index f7fb657bd..996ca01cf 100644
--- a/image/imgLoader.cpp
+++ b/image/imgLoader.cpp
@@ -1684,6 +1684,7 @@ imgLoader::ValidateRequestWithNewChannel(imgRequest* request,
rv = newChannel->AsyncOpen2(listener);
if (NS_WARN_IF(NS_FAILED(rv))) {
+ req->CancelAndForgetObserver(rv);
return false;
}