destructor closes window
git-svn-id: svn://10.0.0.236/trunk@10681 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
a8251d5e68
commit
7461840b06
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user