Permalink
Browse files

Fix read from invalidated iterator in CallbackHandler.cpp

  • Loading branch information...
1 parent c20b7e3 commit 20bc4da31df9e028b5d5c31d6f70feef11bca9e7 Kyle Hill committed with Kyle Hill Sep 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/interfaces/legacy/CallbackHandler.cpp
@@ -145,11 +145,11 @@ namespace XBMCAddon
#ifdef ENABLE_TRACE_API
CLog::Log(LOGDEBUG,"%sNEWADDON removing callback 0x%lx for PyThreadState 0x%lx from queue", _tg.getSpaces(),(long)(p->cb.get()) ,(long)userData);
#endif
- g_callQueue.erase(iter);
+ iter = g_callQueue.erase(iter);
}
else
iter++;
- }
+ }
}
}

0 comments on commit 20bc4da

Please sign in to comment.