mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:03:00 +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() :
|
||||
bHasCheckboxes(FALSE),
|
||||
nLastHeaderID(-1)
|
||||
CAppsListView::CAppsListView()
|
||||
{
|
||||
}
|
||||
|
||||
CAppsListView::~CAppsListView()
|
||||
{
|
||||
if (m_hImageListView)
|
||||
{
|
||||
ImageList_Destroy(m_hImageListView);
|
||||
}
|
||||
}
|
||||
|
||||
VOID CAppsListView::SetCheckboxesVisible(BOOL bIsVisible)
|
||||
{
|
||||
if (bIsVisible)
|
||||
|
@ -1253,7 +1259,7 @@ INT CAppsListView::CompareFunc(LPARAM lParam1, LPARAM lParam2, INT iSubItem)
|
|||
HWND CAppsListView::Create(HWND hwndParent)
|
||||
{
|
||||
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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue