This commit is contained in:
rods%netscape.com 1998-10-16 22:36:43 +00:00
Родитель c594ed5fe7
Коммит 3dae4d6469
1 изменённых файлов: 0 добавлений и 19 удалений

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

@ -102,62 +102,43 @@ nsRenderingContextUnix :: nsRenderingContextUnix()
nsRenderingContextUnix :: ~nsRenderingContextUnix()
{
printf("1 - \n");
if (mRegion) {
::XDestroyRegion(mRegion);
mRegion = nsnull;
}
printf("1 - \n");
mTMatrix = nsnull;
// Destroy the State Machine
if (nsnull != mStateCache)
{
printf("1 - \n");
PRInt32 cnt = mStateCache->Count();
printf("4 - cnt %d\n", cnt);
while (--cnt >= 0)
{
printf("5 - mStateCache %x\n", mStateCache);
GraphicsState *state = (GraphicsState *)mStateCache->ElementAt(cnt);
printf("a - %x\n", state);
mStateCache->RemoveElementAt(cnt);
printf("b - \n");
if (nsnull != state)
delete state;
}
printf("c - \n");
delete mStateCache;
printf("d - \n");
mStateCache = nsnull;
printf("e - \n");
}
printf("f - \n");
// Destroy the front buffer and it's GC if one was allocated for it
if (nsnull != mFrontBuffer) {
printf("g - \n");
delete mFrontBuffer;
}
printf("h - \n");
NS_IF_RELEASE(mFontMetrics);
printf("i - \n");
NS_IF_RELEASE(mContext);
printf("j - \n");
if (nsnull != mDrawStringBuf) {
printf("k - \n");
PR_Free(mDrawStringBuf);
printf("m - \n");
}
printf("n - \n");
}
NS_IMPL_QUERY_INTERFACE(nsRenderingContextUnix, kRenderingContextIID)