Bug 1458505 - grapping 'self' in mozilla::MakeScopeExit instead of '&' when needed, in DOM code, r=erahm

This commit is contained in:
Andrea Marchesini
2018-05-03 08:09:58 +02:00
parent e76f833ed9
commit 8ebf46d6e9
3 changed files with 3 additions and 3 deletions

View File

@@ -4840,7 +4840,7 @@ nsresult HTMLMediaElement::InitializeDecoderForChannel(nsIChannel* aChannel,
}
};
auto onExit = MakeScopeExit([&] {
auto onExit = MakeScopeExit([self] {
if (self->mChannelLoader) {
self->mChannelLoader->Done();
self->mChannelLoader = nullptr;