Patch: Subclassing of wxMenuBar in XRC
|Reported by:||botg||Owned by:|
|Keywords:||wxMenuBar subclassing XRC||Cc:|
This patch allows the subclassing of wxMenuBar if loaded from an XRC file.
wxMenuBarXmlHandler::DoCreateResource did not check if m_instance was already existing and did always create a new wxMenuBar, causing the subclasing to fail and some memory to be leaked.
The patch applies to both 2.8 as well as trunk.
It would be nice to include this fix in 2.8.11 if there is still time.