Properly delete the object and allow its destructor to cleanup
authorgedmurphy <gedmurphy@reactos.org>
Thu, 18 Jan 2018 16:43:11 +0000 (16:43 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Sat, 20 Jan 2018 18:38:42 +0000 (18:38 +0000)
base/shell/explorer/trayntfy.cpp

index 33ac6c8..4df1a62 100644 (file)
@@ -122,7 +122,7 @@ public:
             {
                 IconWatcherData *Icon;
                 Icon = m_WatcherList.GetAt(Pos);
             {
                 IconWatcherData *Icon;
                 Icon = m_WatcherList.GetAt(Pos);
-                CloseHandle(Icon->hProcess);
+                delete Icon;
             }
         }
         m_WatcherList.RemoveAll();
             }
         }
         m_WatcherList.RemoveAll();