From 9204780c1ba72cfe252e4dbbac77a446c796904d Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Tue, 24 Apr 2012 11:01:04 -0700 Subject: [PATCH] Fix for a missing lock in complete_remove --- complete.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/complete.cpp b/complete.cpp index 720c10077..e9dca8e35 100644 --- a/complete.cpp +++ b/complete.cpp @@ -528,6 +528,7 @@ void complete_remove( const wchar_t *cmd, { CHECK( cmd, ); scoped_lock lock(completion_lock); + scoped_lock lock2(completion_entry_lock); completion_entry_t tmp_entry(cmd, cmd_is_path, L"", false); completion_entry_set_t::iterator iter = completion_set.find(&tmp_entry);