Commit 4582fb9c authored by dickelbeck's avatar dickelbeck

fix memory leak, comments

parent a21a1931
...@@ -172,8 +172,8 @@ struct IDs ...@@ -172,8 +172,8 @@ struct IDs
/** /**
* Function getIDs * Function getIDs
* maps \a aLayerNumber to the two wx IDs for that layer which are * maps \a aLayerNumber to the wx IDs for that layer which are
* the layer name control ID and the checkbox control ID. * the layer name control ID, checkbox control ID, and choice control ID
*/ */
static IDs getIDs( int aLayerNumber ) static IDs getIDs( int aLayerNumber )
{ {
...@@ -639,9 +639,10 @@ bool DIALOG_LAYERS_SETUP::TestDataValidity() ...@@ -639,9 +639,10 @@ bool DIALOG_LAYERS_SETUP::TestDataValidity()
void DisplayDialogLayerSetup( WinEDA_PcbFrame* parent ) void DisplayDialogLayerSetup( WinEDA_PcbFrame* parent )
{ {
DIALOG_LAYERS_SETUP* frame = new DIALOG_LAYERS_SETUP( parent ); DIALOG_LAYERS_SETUP frame( parent );
frame->ShowModal();
frame->Destroy(); frame.ShowModal();
frame.Destroy();
} }
//============================================================================== //==============================================================================
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment