destructor closes window

git-svn-id: svn://10.0.0.236/trunk@10681 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pierre%netscape.com 1998-09-22 04:18:40 +00:00
parent a8251d5e68
commit 7461840b06

View File

@ -92,6 +92,14 @@ nsWindow::~nsWindow()
mWindowRegion = nsnull;
}
if (mParent == nsnull)
{
CloseWindow(mWindowPtr);
delete[] mWindowRecord;
mWindowPtr = nsnull;
mWindowRecord = nsnull;
}
//XtDestroyWidget(mWidget);
//if (nsnull != mGC) {
//::XFreeGC((Display *)GetNativeData(NS_NATIVE_DISPLAY),mGC);