mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
[FileLocksmith]Avoid GDI object leak on context menu (#28611)
This commit is contained in:
@@ -104,7 +104,6 @@ IFACEMETHODIMP ExplorerCommand::Initialize(PCIDLIST_ABSOLUTE pidlFolder, IDataOb
|
|||||||
if (pdtobj)
|
if (pdtobj)
|
||||||
{
|
{
|
||||||
m_data_obj = pdtobj;
|
m_data_obj = pdtobj;
|
||||||
m_data_obj->AddRef();
|
|
||||||
}
|
}
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
@@ -242,10 +241,6 @@ ExplorerCommand::ExplorerCommand()
|
|||||||
|
|
||||||
ExplorerCommand::~ExplorerCommand()
|
ExplorerCommand::~ExplorerCommand()
|
||||||
{
|
{
|
||||||
if (m_data_obj)
|
|
||||||
{
|
|
||||||
m_data_obj->Release();
|
|
||||||
}
|
|
||||||
--globals::ref_count;
|
--globals::ref_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user