Small mem leak in GUI mk1 (0.300)
Posted: Tue Mar 16, 2004 23:31
Here's a trivial memory leak I found in MultiColumnListWidget.cpp:
Should be:
I just added the last delete, which is "delete d_headerDblClickCommand;".
I checked CVS to make sure that it was there as well, and it is there as well. Thanks again for the GUI system.
Code: Select all
/*************************************************************************
Destructor
*************************************************************************/
MultiColumnListWidget::~MultiColumnListWidget(void)
{
removeChildWindow(*d_header);
removeChildWindow(*d_horzScroller);
removeChildWindow(*d_vertScroller);
delete d_header;
delete d_horzScroller;
delete d_vertScroller;
delete d_sortColumnChangedCommand;
delete d_headerSizedCommand;
}
Should be:
Code: Select all
/*************************************************************************
Destructor
*************************************************************************/
MultiColumnListWidget::~MultiColumnListWidget(void)
{
removeChildWindow(*d_header);
removeChildWindow(*d_horzScroller);
removeChildWindow(*d_vertScroller);
delete d_header;
delete d_horzScroller;
delete d_vertScroller;
delete d_sortColumnChangedCommand;
delete d_headerSizedCommand;
delete d_headerDblClickCommand; // *** added this
}
I just added the last delete, which is "delete d_headerDblClickCommand;".
I checked CVS to make sure that it was there as well, and it is there as well. Thanks again for the GUI system.