Commit 4582fb9c authored by dickelbeck's avatar dickelbeck

fix memory leak, comments

parent a21a1931
......@@ -172,8 +172,8 @@ struct IDs
/**
* Function getIDs
* maps \a aLayerNumber to the two wx IDs for that layer which are
* the layer name control ID and the checkbox control ID.
* maps \a aLayerNumber to the wx IDs for that layer which are
* the layer name control ID, checkbox control ID, and choice control ID
*/
static IDs getIDs( int aLayerNumber )
{
......@@ -639,9 +639,10 @@ bool DIALOG_LAYERS_SETUP::TestDataValidity()
void DisplayDialogLayerSetup( WinEDA_PcbFrame* parent )
{
DIALOG_LAYERS_SETUP* frame = new DIALOG_LAYERS_SETUP( parent );
frame->ShowModal();
frame->Destroy();
DIALOG_LAYERS_SETUP frame( parent );
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