fixed bug in ref counting on drawing surfaces in the rendering context.

This commit is contained in:
michaelp%netscape.com 1998-10-27 00:09:44 +00:00
parent dbc60847fd
commit c68614adc1

View File

@ -1076,6 +1076,7 @@ void nsRenderingContextWin :: DestroyDrawingSurface(nsDrawingSurface aDS)
{
mDC = mMainDC;
mSurface = mMainSurface;
NS_IF_ADDREF(mSurface);
}
NS_IF_RELEASE(surf);