projects
/
platform
/
core
/
connectivity
/
nan-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
437a34f
)
Do not use iterator after erase()
58/258458/1
accepted/tizen_6.5_unified
tizen_6.5
accepted/tizen/6.5/unified/20211028.100519
accepted/tizen/unified/20210602.122604
submit/tizen/20210531.063738
submit/tizen_6.5/20211028.162201
tizen_6.5.m2_release
author
Cheoleun Moon
<chleun.moon@samsung.com>
Tue, 18 May 2021 05:11:53 +0000
(14:11 +0900)
committer
Cheoleun Moon
<chleun.moon@samsung.com>
Tue, 18 May 2021 05:11:59 +0000
(14:11 +0900)
Change-Id: I2ceb8859578ed3b4a92427d179e0d19f8d57ad51
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
src/NanClientManager.cpp
patch
|
blob
|
history
diff --git
a/src/NanClientManager.cpp
b/src/NanClientManager.cpp
index a891f7d0b268b06af3a63efd2e41ad7ca59abbef..3a02b3d0b5c830c4a944cc397af9bb02cde80aa9 100644
(file)
--- a/
src/NanClientManager.cpp
+++ b/
src/NanClientManager.cpp
@@
-74,8
+74,8
@@
void NanClientManager::removeAllClients()
clientIterator != mClientMap.end(); /* no increment */ )
{
auto currentClient = clientIterator;
- clientIterator = mClientMap.erase(clientIterator);
delete currentClient->second;
+ clientIterator = mClientMap.erase(clientIterator);
}
}