]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/menu.cpp
fix memory leak (coverity checker CID 53)
[wxWidgets.git] / src / msw / menu.cpp
index 738d07c711f7e44bf102651b8fab8f03ae79e8b8..85d93d73a9cd76c317a87463394a7907c03bb667 100644 (file)
@@ -1133,6 +1133,7 @@ bool wxMenuBar::Insert(size_t pos, wxMenu *menu, const wxString& title)
             wxLogLastError(wxT("TB_INSERTBUTTON"));
             return false;
         }
+        wxUnusedVar(mswpos);
 #else
         if ( !::InsertMenu(GetHmenu(), mswpos,
                            MF_BYPOSITION | MF_POPUP | MF_STRING,