mirror of
https://github.com/reactos/reactos.git
synced 2025-04-29 18:48:53 +00:00
[RAPPS] Fix double free when closing rapps
This commit is contained in:
parent
9229e73f03
commit
675edad96f
2 changed files with 14 additions and 7 deletions
|
@ -1113,12 +1113,18 @@ CAppInfoDisplay::~CAppInfoDisplay()
|
||||||
|
|
||||||
// **** CAppsListView ****
|
// **** CAppsListView ****
|
||||||
|
|
||||||
CAppsListView::CAppsListView() :
|
CAppsListView::CAppsListView()
|
||||||
bHasCheckboxes(FALSE),
|
|
||||||
nLastHeaderID(-1)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CAppsListView::~CAppsListView()
|
||||||
|
{
|
||||||
|
if (m_hImageListView)
|
||||||
|
{
|
||||||
|
ImageList_Destroy(m_hImageListView);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
VOID CAppsListView::SetCheckboxesVisible(BOOL bIsVisible)
|
VOID CAppsListView::SetCheckboxesVisible(BOOL bIsVisible)
|
||||||
{
|
{
|
||||||
if (bIsVisible)
|
if (bIsVisible)
|
||||||
|
@ -1253,7 +1259,7 @@ INT CAppsListView::CompareFunc(LPARAM lParam1, LPARAM lParam2, INT iSubItem)
|
||||||
HWND CAppsListView::Create(HWND hwndParent)
|
HWND CAppsListView::Create(HWND hwndParent)
|
||||||
{
|
{
|
||||||
RECT r = { 205, 28, 465, 250 };
|
RECT r = { 205, 28, 465, 250 };
|
||||||
DWORD style = WS_CHILD | WS_VISIBLE | LVS_SORTASCENDING | LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_AUTOARRANGE;
|
DWORD style = WS_CHILD | WS_VISIBLE | LVS_SORTASCENDING | LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_AUTOARRANGE | LVS_SHAREIMAGELISTS;
|
||||||
|
|
||||||
HWND hwnd = CListView::Create(hwndParent, r, NULL, style, WS_EX_CLIENTEDGE);
|
HWND hwnd = CListView::Create(hwndParent, r, NULL, style, WS_EX_CLIENTEDGE);
|
||||||
|
|
||||||
|
|
|
@ -211,20 +211,21 @@ class CAppsListView :
|
||||||
};
|
};
|
||||||
|
|
||||||
BOOL bIsAscending = TRUE;
|
BOOL bIsAscending = TRUE;
|
||||||
BOOL bHasCheckboxes;
|
BOOL bHasCheckboxes = FALSE;
|
||||||
|
|
||||||
INT ItemCount = 0;
|
INT ItemCount = 0;
|
||||||
INT CheckedItemCount = 0;
|
INT CheckedItemCount = 0;
|
||||||
INT ColumnCount = 0;
|
INT ColumnCount = 0;
|
||||||
|
|
||||||
INT nLastHeaderID;
|
INT nLastHeaderID = -1;
|
||||||
|
|
||||||
APPLICATION_VIEW_TYPE ApplicationViewType = AppViewTypeEmpty;
|
APPLICATION_VIEW_TYPE ApplicationViewType = AppViewTypeEmpty;
|
||||||
|
|
||||||
HIMAGELIST m_hImageListView;
|
HIMAGELIST m_hImageListView = NULL;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CAppsListView();
|
CAppsListView();
|
||||||
|
~CAppsListView();
|
||||||
|
|
||||||
VOID SetCheckboxesVisible(BOOL bIsVisible);
|
VOID SetCheckboxesVisible(BOOL bIsVisible);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue