Revert "Fixed memory leaks"

This reverts commit a9efbf4716.

The commit broke compiles with scripting
This commit is contained in:
Seth Hillbrand
2018-12-11 10:12:44 -08:00
parent 2c53ab3d8c
commit e307d9318b
11 changed files with 30 additions and 22 deletions
+3 -1
View File
@@ -79,7 +79,7 @@ private:
wxString m_ConvertedFileName;
wxSize m_frameSize;
wxPoint m_framePos;
std::unique_ptr<wxConfigBase> m_config;
wxConfigBase* m_config;
public:
BM2CMP_FRAME( KIWAY* aKiway, wxWindow* aParent );
@@ -223,6 +223,8 @@ BM2CMP_FRAME::~BM2CMP_FRAME()
m_config->Write( KEYWORD_LAST_FORMAT, m_radioBoxFormat->GetSelection() );
m_config->Write( KEYWORD_LAST_MODLAYER, m_radio_PCBLayer->GetSelection() );
delete m_config;
/* This needed for OSX: avoids further OnDraw processing after this
* destructor and before the native window is destroyed
*/