Fix for properly removing universal variable.

This commit is contained in:
Siteshwar Vashisht 2012-02-18 14:42:02 +05:30
parent 8f1423946f
commit aad6e5648b
2 changed files with 2 additions and 2 deletions

View File

@ -693,7 +693,7 @@ void env_destroy()
{
has_changed = 1;
}
delete entry;
}
@ -1454,7 +1454,6 @@ void env_pop()
{
has_changed = 1;
}
delete entry;
}

View File

@ -522,6 +522,7 @@ void env_universal_common_remove( const wcstring &name )
if (result != env_universal_var.end())
{
var_uni_entry_t* v = result->second;
env_universal_var.erase(result);
delete v;
}
}