summaryrefslogtreecommitdiff
path: root/cppu/source/uno/EnvStack.cxx
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-02-06 11:49:10 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-02-06 11:49:10 +0100
commit259c35955a07b450e2653cd78005eb6362cc4d26 (patch)
tree991a73a34037088ef4877b599f7809c41cd28527 /cppu/source/uno/EnvStack.cxx
parent93c5442bd245f6f9dc0ba9689aae235794d6a1a6 (diff)
don't crash trying to erase one past end
Diffstat (limited to 'cppu/source/uno/EnvStack.cxx')
-rw-r--r--cppu/source/uno/EnvStack.cxx5
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)