Bug 1263200 - Reset the APZ pointer in the base widget to null if the compositor creation fails. r=mstange

MozReview-Commit-ID: LH26TsWYrVx

--HG--
extra : rebase_source : 8606a8e52c38601a1725bf03a2b49c72631c2570
This commit is contained in:
Kartikaya Gupta 2016-04-15 09:07:14 -04:00
parent fd0feca4f6
commit fbb1abf68d

View File

@ -1286,6 +1286,7 @@ void nsBaseWidget::CreateCompositor(int aWidth, int aHeight)
if (!success || !lf) {
NS_WARNING("Failed to create an OMT compositor.");
mAPZC = nullptr;
DestroyCompositor();
mLayerManager = nullptr;
mCompositorBridgeChild = nullptr;