fixed imagelist handle leak

svn path=/trunk/; revision=8709
This commit is contained in:
Martin Fuchs 2004-03-14 12:43:27 +00:00
parent 42798328cb
commit 3b338cc571
4 changed files with 7 additions and 5 deletions

View file

@ -35,7 +35,3 @@
Yes, ROS explorer doesn't read many settings from the registry currently,
as it doesn't have a way to configure them. (missing configuration dialogs)
- Es scheint ein paar GDI-Leaks in deinem Programm zu geben.
Wenn man ein neues MDI Fenster öffnet und dann wieder schließt, werden
einige GDI-Objekte nicht wieder gelöscht.

View file

@ -225,7 +225,7 @@ FileChildWindow::FileChildWindow(HWND hwnd, const FileChildWndInfo& info)
if (info._open_mode & OWM_EXPLORE) ///@todo Is not-explore-mode for FileChildWindow completely implemented?
_left_hwnd = *(_left=new Pane(_hwnd, IDW_TREE_LEFT, IDW_HEADER_LEFT, _root._entry, true, COL_CONTENT));
_left_hwnd = *(_left=new Pane(_hwnd, IDW_TREE_LEFT, IDW_HEADER_LEFT, _root._entry, true, COL_CONTENT));
_right_hwnd = *(_right=new Pane(_hwnd, IDW_TREE_RIGHT, IDW_HEADER_RIGHT, NULL, false,
COL_TYPE|COL_SIZE|COL_DATE|COL_TIME|COL_ATTRIBUTES|COL_INDEX|COL_LINKS|COL_CONTENT));

View file

@ -95,6 +95,11 @@ Pane::Pane(HWND hparent, int id, int id_header, Entry* root, bool treePane, int
create_header(hparent, id_header);
}
Pane::~Pane()
{
ImageList_Destroy(_himl);
}
LRESULT Pane::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
{

View file

@ -68,6 +68,7 @@ struct Pane : public SubclassedWindow
typedef SubclassedWindow super;
Pane(HWND hparent, int id, int id_header, Entry* rool, bool treePane, int visible_cols);
~Pane();
#define COLUMNS 12
int _widths[COLUMNS];