[EXPLORER] WatchList should be freed with delete[], not delete (#374)
authorBișoc George <fraizeraust99@gmail.com>
Sun, 11 Feb 2018 21:56:38 +0000 (22:56 +0100)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Sun, 11 Feb 2018 21:56:38 +0000 (22:56 +0100)
commitabdde0b764540617fd99ef397287421a3ace1dfc
tree76d5c484e65063ae7652006364426f84ef4d93a4
parent075d58cc647b44ab849d512d9703f3d1d55f5793
[EXPLORER] WatchList should be freed with delete[], not delete (#374)

WatchList is a set of array objects, initialized with "new[]", so it should be freed with "delete[]" to free all of its elements. Otherwise using only "delete" only frees the first variable but not its array. This would lead to an undefined behaviour.
base/shell/explorer/syspager.cpp