SetMenuBar potential memory leak fixed; added wxTAB_TRAVERSAL as dummy (0) style

for backward compatibility


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-09-02 08:23:23 +00:00
parent 107e4716f2
commit da4b7ffc78
3 changed files with 3 additions and 1 deletions

View File

@@ -422,6 +422,7 @@ void wxFrame::SetMenuBar(wxMenuBar *menu_bar)
{
if (!menu_bar)
{
delete m_frameMenuBar;
m_frameMenuBar = NULL;
return;
}