Skip to content
Snippets Groups Projects
Commit b85925bc authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

BUG: Remove warning and try to fix memory problem

parent f67c1d15
No related branches found
No related tags found
No related merge requests found
......@@ -367,6 +367,11 @@ RegistryHelper::~RegistryHelper()
bool RegistryHelper::Open(const char *toplevel, const char *subkey,
int readonly)
{
this->EntriesMap.erase(
this->EntriesMap.begin(),
this->EntriesMap.end());
m_Empty = 1;
#ifdef _WIN32
if ( m_RegistryType == Registry::WIN32_REGISTRY)
{
......@@ -493,10 +498,6 @@ bool RegistryHelper::Close()
{
if ( !m_Changed )
{
this->EntriesMap.erase(
this->EntriesMap.begin(),
this->EntriesMap.end());
m_Empty = 1;
this->SetSubKey(0);
return true;
}
......@@ -786,7 +787,7 @@ kwsys_stl::string RegistryHelper::DecodeValue(const char* str)
kwsys_ios::ostringstream ostr;
while ( *str )
{
int val;
unsigned int val;
switch ( *str )
{
case '%':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment