Bug 898768 - Make CRC2D::IsTargetValid also check for null r=mattwoodrow

This commit is contained in:
James Willcox 2013-07-31 17:10:16 -04:00
parent 232c9b9184
commit be97cbc720

View File

@ -545,7 +545,7 @@ protected:
/**
* Check if the target is valid after calling EnsureTarget.
*/
bool IsTargetValid() { return mTarget != sErrorTarget; }
bool IsTargetValid() { return mTarget != sErrorTarget && mTarget != nullptr; }
/**
* Returns the surface format this canvas should be allocated using. Takes