]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/menu.cpp
Mem leak in new accelerator code.
[wxWidgets.git] / src / gtk1 / menu.cpp
index de0b18636ff5872b24400b996947fbe791565419..d0b20891bbf5f33feea8877add9c68e3a2f5d359 100644 (file)
@@ -853,6 +853,8 @@ static wxString GetHotKey( const wxMenuItem& item )
                 wxFAIL_MSG( wxT("unknown keyboard accel") );
         }
     }
+    if (accel)
+        delete accel;
 
     return hotkey;
 }