citra-emu
/
citra
Archived
1
0
Fork 0

Properly erase/remove an observer

This commit is contained in:
chinhodado 2014-12-18 18:42:24 -05:00
parent 765dbabdb6
commit d31c23e958
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}