Bug 1458505 - grapping 'self' in mozilla::MakeScopeExit instead of '&' when needed, in HTMLMediaElement, r=me CLOSED TREE

This commit is contained in:
Andrea Marchesini 2018-05-03 08:37:27 +02:00
parent 4eeed45b93
commit cae9cf0b13

View File

@ -4827,8 +4827,8 @@ nsresult HTMLMediaElement::InitializeDecoderForChannel(nsIChannel* aChannel,
NS_ASSERTION(!mimeType.IsEmpty(), "We should have the Content-Type.");
NS_ConvertUTF8toUTF16 mimeUTF16(mimeType);
HTMLMediaElement* self = this;
auto reportCanPlay = [&](bool aCanPlay) {
RefPtr<HTMLMediaElement> self = this;
auto reportCanPlay = [&, self](bool aCanPlay) {
diagnostics.StoreFormatDiagnostics(
self->OwnerDoc(), mimeUTF16, aCanPlay, __func__);
if (!aCanPlay) {