fixed leak of regions in state cloning.

This commit is contained in:
michaelp%netscape.com 1998-10-11 00:40:10 +00:00
Родитель d96e11b883
Коммит db6fc02f13
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -667,7 +667,10 @@ void nsRenderingContextWin :: PushState(void)
state->mMatrix = mStates->mMatrix; state->mMatrix = mStates->mMatrix;
state->mLocalClip = mStates->mLocalClip; state->mLocalClip = mStates->mLocalClip;
state->mClipRegion = NULL; // we don't want to NULL this out since we reuse the region
// from state to state. if we NULL it, we need to also delete it,
// which means we'll just re-create it when we push the clip state. MMP
// state->mClipRegion = NULL;
state->mBrushColor = mStates->mBrushColor; state->mBrushColor = mStates->mBrushColor;
state->mSolidBrush = NULL; state->mSolidBrush = NULL;
state->mFontMetrics = mStates->mFontMetrics; state->mFontMetrics = mStates->mFontMetrics;