Fix Coverity CID 1108465: Use after free

Signed-off-by: Ingo Weinhold <[email protected]>
This commit is contained in:
noryb009
2014-01-09 06:18:30 +01:00
committed by Ingo Weinhold
parent a19c04e6a3
commit f466a0b81e
+1
View File
@@ -2043,6 +2043,7 @@ BPathMonitor::StartWatching(const char* path, uint32 flags,
sWatchers->Remove(watcher);
delete watcher;
}
return status;
}
watcher->Insert(handler);