simplefilewatcher
simplefilewatcher copied to clipboard
bugfix for segmentation fault which is sometimes triggered after a wa…
sometimes after removeWatch() was called, handleAction(...) triggered a segmentation fault. This is because in removeWatch the Watch* was deleted and removed from mWatches. In the update function mWatches[pevent->wd] is called which creates a new map entry with a random pointer.