projects
/
shibboleth
/
cpp-opensaml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix race condition during shutdown.
[shibboleth/cpp-opensaml.git]
/
saml
/
saml2
/
metadata
/
impl
/
XMLMetadataProvider.cpp
diff --git
a/saml/saml2/metadata/impl/XMLMetadataProvider.cpp
b/saml/saml2/metadata/impl/XMLMetadataProvider.cpp
index
be76358
..
5462564
100644
(file)
--- a/
saml/saml2/metadata/impl/XMLMetadataProvider.cpp
+++ b/
saml/saml2/metadata/impl/XMLMetadataProvider.cpp
@@
-53,12
+53,8
@@
namespace opensaml {
m_object(NULL), m_maxCacheDuration(m_reloadInterval) {
}
virtual ~XMLMetadataProvider() {
m_object(NULL), m_maxCacheDuration(m_reloadInterval) {
}
virtual ~XMLMetadataProvider() {
- if (m_lock)
- m_lock->wrlock();
+ shutdown();
delete m_object;
delete m_object;
- m_object = NULL;
- if (m_lock)
- m_lock->unlock();
}
void init() {
}
void init() {