diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-02-06 11:49:10 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-02-06 11:49:10 +0100 |
commit | 259c35955a07b450e2653cd78005eb6362cc4d26 (patch) | |
tree | 991a73a34037088ef4877b599f7809c41cd28527 /cppu | |
parent | Revert "revert this change for now as its triggering a crash in saxparser" (diff) | |
download | core-259c35955a07b450e2653cd78005eb6362cc4d26.tar.gz core-259c35955a07b450e2653cd78005eb6362cc4d26.zip |
don't crash trying to erase one past end
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/uno/EnvStack.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cppu/source/uno/EnvStack.cxx b/cppu/source/uno/EnvStack.cxx index 0af0aafc17ea..d1ff2922233a 100644 --- a/cppu/source/uno/EnvStack.cxx +++ b/cppu/source/uno/EnvStack.cxx @@ -88,10 +88,7 @@ static void s_setCurrent(uno_Environment * pEnv) rThreadMap[threadId] = pEnv; else - { - ThreadMap::iterator iEnv = rThreadMap.find(threadId); - rThreadMap.erase(iEnv); - } + rThreadMap.erase(threadId); } static uno_Environment * s_getCurrent(void) |