From 50def5c02d6106fd59bb8ef5ada8a46610c809f8 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Wed, 20 Jul 2016 19:23:56 +0000 Subject: [PATCH] #1189 Code change provided by private email from Taras. Thank You Taras. --- src/properties.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/properties.cpp b/src/properties.cpp index 1e8906fa..14edb777 100644 --- a/src/properties.cpp +++ b/src/properties.cpp @@ -2509,7 +2509,7 @@ namespace Exiv2 { const std::string& prefix) { Internal::ScopedWriteLock swl(rwLock_); - + std::string ns2 = ns; if ( ns2.substr(ns2.size() - 1, 1) != "/" && ns2.substr(ns2.size() - 1, 1) != "#") ns2 += "/"; @@ -2558,7 +2558,7 @@ namespace Exiv2 { void XmpProperties::unregisterNs() { Internal::ScopedWriteLock swl(rwLock_); - + NsRegistry::iterator i = nsRegistry_.begin(); while (i != nsRegistry_.end()) { NsRegistry::iterator kill = i++; @@ -2659,7 +2659,6 @@ namespace Exiv2 { const XmpNsInfo* XmpProperties::nsInfoUnsafe(const std::string& prefix) { - Internal::ScopedReadLock srl(rwLock_); const XmpNsInfo::Prefix pf(prefix); const XmpNsInfo* xn = lookupNsRegistryUnsafe(pf); if (!xn) xn = find(xmpNsInfo, pf);