mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1225327 - fix |mEncoder| null-dereference. r=jwwang
--HG-- extra : transplant_source : S4%08%B8%EF%B7%C72%D9%CDh%15%96M%21Z%CE%BC%F9%84
This commit is contained in:
parent
5c46934990
commit
7034fa9aff
@ -455,8 +455,7 @@ public:
|
||||
size_t
|
||||
SizeOfExcludingThis(mozilla::MallocSizeOf aMallocSizeOf) const
|
||||
{
|
||||
size_t amount = mEncoder->SizeOfExcludingThis(aMallocSizeOf);
|
||||
return amount;
|
||||
return (mEncoder ? mEncoder->SizeOfExcludingThis(aMallocSizeOf) : 0);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user