]> git.saurik.com Git - wxWidgets.git/commitdiff
SetMenuBar potential memory leak fixed; added wxTAB_TRAVERSAL as dummy (0) style
authorJulian Smart <julian@anthemion.co.uk>
Thu, 2 Sep 1999 08:23:23 +0000 (08:23 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 2 Sep 1999 08:23:23 +0000 (08:23 +0000)
for backward compatibility

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/log.tex
src/common/resource.cpp
src/msw/frame.cpp

index e789c371326e7de20c4dde234ac745e0c4d5ad34..07a557df28392395c1bdafaa916ecfc4dbdc61f8 100644 (file)
@@ -169,7 +169,7 @@ Returns whether the verbose mode is currently active.
 Sets the timestamp format prepended by the default log targets to all
 messages. The string may contain any normal characters as well as \%
 prefixed format specificators, see {\it strftime()} manual for details.
-Passing a null value (not empty string) to this function disables message timestamping.
+Passing a NULL value (not empty string) to this function disables message timestamping.
 
 \membersection{wxLog::GetTimestamp}\label{wxloggettimestamp}
 
index c51def975a668c18f9447f9075cb587cde358234..7724ad4b3e554dd5d40259608b08187c5a748c1f 100644 (file)
@@ -1935,6 +1935,7 @@ static wxResourceBitListStruct wxResourceBitListTable[] =
   { _T("wxTRANSPARENT_WINDOW"), wxTRANSPARENT_WINDOW},
   { _T("wxNO_BORDER"), wxNO_BORDER},
   { _T("wxCLIP_CHILDREN"), wxCLIP_CHILDREN},
+  { _T("wxTAB_TRAVERSAL"), 0}, // Compatibility only
 
   { _T("wxTINY_CAPTION_HORIZ"), wxTINY_CAPTION_HORIZ},
   { _T("wxTINY_CAPTION_VERT"), wxTINY_CAPTION_VERT},
index 3549546754d6e06fa904d6e1a6790f3d2009753d..1f463ef76a1db304357b7dfc0a6f0053ee96b8d0 100644 (file)
@@ -422,6 +422,7 @@ void wxFrame::SetMenuBar(wxMenuBar *menu_bar)
 {
     if (!menu_bar)
     {
+        delete m_frameMenuBar;
         m_frameMenuBar = NULL;
         return;
     }