https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2abd068398267c89d3cdd8e28251b8dec0a89ae1

commit 2abd068398267c89d3cdd8e28251b8dec0a89ae1
Author:     gedmurphy <[email protected]>
AuthorDate: Thu Jan 18 16:43:11 2018 +0000
Commit:     Ged Murphy <[email protected]>
CommitDate: Sat Jan 20 18:38:42 2018 +0000

    Properly delete the object and allow its destructor to cleanup
---
 base/shell/explorer/trayntfy.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/base/shell/explorer/trayntfy.cpp b/base/shell/explorer/trayntfy.cpp
index 33ac6c85b3..4df1a6240c 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();

Reply via email to