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:
Benjamin Chen 2015-11-30 14:29:17 +08:00
parent 5c46934990
commit 7034fa9aff

View File

@ -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);
}