mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-28 03:17:31 +09:00
Use a RefPtr to hold owner element ref when moving media resource load
to background.
This commit is contained in:
parent
28e15ed590
commit
30f4771cb7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue