From: gedmurphy Date: Thu, 18 Jan 2018 16:43:11 +0000 (+0000) Subject: Properly delete the object and allow its destructor to cleanup X-Git-Tag: 0.4.9-dev~293 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=2abd068398267c89d3cdd8e28251b8dec0a89ae1 Properly delete the object and allow its destructor to cleanup --- diff --git a/base/shell/explorer/trayntfy.cpp b/base/shell/explorer/trayntfy.cpp index 33ac6c85b39..4df1a6240cd 100644 --- a/base/shell/explorer/trayntfy.cpp +++ b/base/shell/explorer/trayntfy.cpp @@ -122,7 +122,7 @@ public: { IconWatcherData *Icon; Icon = m_WatcherList.GetAt(Pos); - CloseHandle(Icon->hProcess); + delete Icon; } } m_WatcherList.RemoveAll();