From a2b4191bd428d263940a51947af0371e2dd6daef Mon Sep 17 00:00:00 2001 From: Bas Schouten Date: Wed, 14 Jul 2010 00:19:43 +0200 Subject: [PATCH] Bug 578500: Clear mTarget at the end of a transaction. r=roc --- gfx/layers/d3d9/LayerManagerD3D9.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/layers/d3d9/LayerManagerD3D9.cpp b/gfx/layers/d3d9/LayerManagerD3D9.cpp index 7fc957eef1d0..b29278e6ce14 100644 --- a/gfx/layers/d3d9/LayerManagerD3D9.cpp +++ b/gfx/layers/d3d9/LayerManagerD3D9.cpp @@ -246,6 +246,8 @@ LayerManagerD3D9::EndTransaction(DrawThebesLayerCallback aCallback, /* Clean this out for sanity */ mCurrentCallbackInfo.Callback = NULL; mCurrentCallbackInfo.CallbackData = NULL; + // Clear mTarget, next transaction could have no target + mTarget = NULL; } void