Some doc corrections (added blank lines at end of docs); corrected Forty sample
dialog behaviour; added dummy menubar constructors; corrected wxMSW wxRegion bug git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -235,7 +235,11 @@ wxWindow::~wxWindow()
|
||||
// Destroy the window
|
||||
if (GetMainWidget())
|
||||
{
|
||||
wxDeleteWindowFromTable((Widget) GetMainWidget());
|
||||
// If this line (XtDestroyWidget) causes a crash, you may comment it out.
|
||||
// Child widgets will get destroyed automatically when a frame
|
||||
// or dialog is destroyed, but before that you may get some memory
|
||||
// leaks and potential layout problems if you delete and then add
|
||||
// child windows.
|
||||
XtDestroyWidget((Widget) GetMainWidget());
|
||||
SetMainWidget((WXWidget) NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user