mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 01:04:10 +08:00
Fix for properly removing universal variable.
This commit is contained in:
parent
8f1423946f
commit
aad6e5648b
3
env.cpp
3
env.cpp
@ -693,7 +693,7 @@ void env_destroy()
|
||||
{
|
||||
has_changed = 1;
|
||||
}
|
||||
|
||||
|
||||
delete entry;
|
||||
}
|
||||
|
||||
@ -1454,7 +1454,6 @@ void env_pop()
|
||||
{
|
||||
has_changed = 1;
|
||||
}
|
||||
|
||||
delete entry;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user