Merge pull request #309 from chinhodado/patch-1

Properly erase/remove a DebuggerObserver
merge-requests/60/head
bunnei 2014-12-19 16:47:42 +07:00
commit eb394ac0af
1 changed files with 1 additions and 1 deletions

@ -85,7 +85,7 @@ public:
void UnregisterObserver(DebuggerObserver* observer)
{
std::remove(observers.begin(), observers.end(), observer);
observers.erase(std::remove(observers.begin(), observers.end(), observer), observers.end());
observer->observed = nullptr;
}