summaryrefslogtreecommitdiffstats
path: root/dom/media/MediaResource.cpp
diff options
context:
space:
mode:
authorBryce Van Dyk <bvandyk@mozilla.com>2019-07-18 18:10:14 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-07-22 12:17:41 +0200
commitf1e4a8867575ae83169379cc427567a030f99842 (patch)
tree7833dafdcf2c402250292c3a46a9ac1efa516c36 /dom/media/MediaResource.cpp
parentb3913f05e1f007ec27fcfa67d41e5e7d53edfa55 (diff)
downloadUXP-f1e4a8867575ae83169379cc427567a030f99842.tar
UXP-f1e4a8867575ae83169379cc427567a030f99842.tar.gz
UXP-f1e4a8867575ae83169379cc427567a030f99842.tar.lz
UXP-f1e4a8867575ae83169379cc427567a030f99842.tar.xz
UXP-f1e4a8867575ae83169379cc427567a030f99842.zip
Use a RefPtr to hold owner element ref when moving media resource load
to background.
Diffstat (limited to 'dom/media/MediaResource.cpp')
-rw-r--r--dom/media/MediaResource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/media/MediaResource.cpp b/dom/media/MediaResource.cpp
index d36783be7..84a8d67fd 100644
--- a/dom/media/MediaResource.cpp
+++ b/dom/media/MediaResource.cpp
@@ -1525,7 +1525,7 @@ void BaseMediaResource::SetLoadInBackground(bool aLoadInBackground) {
NS_WARNING("Null owner in MediaResource::SetLoadInBackground()");
return;
}
- dom::HTMLMediaElement* element = owner->GetMediaElement();
+ RefPtr<dom::HTMLMediaElement> element = owner->GetMediaElement();
if (!element) {
NS_WARNING("Null element in MediaResource::SetLoadInBackground()");
return;