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:
@@ -422,6 +422,7 @@ void wxFrame::SetMenuBar(wxMenuBar *menu_bar)
|
||||
{
|
||||
if (!menu_bar)
|
||||
{
|
||||
delete m_frameMenuBar;
|
||||
m_frameMenuBar = NULL;
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user