diff options
author | Bryce Van Dyk <bvandyk@mozilla.com> | 2019-07-18 18:10:14 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-22 12:17:41 +0200 |
commit | f1e4a8867575ae83169379cc427567a030f99842 (patch) | |
tree | 7833dafdcf2c402250292c3a46a9ac1efa516c36 /dom/media/MediaResource.cpp | |
parent | b3913f05e1f007ec27fcfa67d41e5e7d53edfa55 (diff) | |
download | UXP-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.cpp | 2 |
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; |