2001-05-10 Fernando Nasser <fnasser@redhat.com>
* varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old variables, not just unregister them.
This commit is contained in:
parent
0755e6c1ab
commit
f7635dd920
@ -1,3 +1,8 @@
|
||||
2001-05-10 Fernando Nasser <fnasser@redhat.com>
|
||||
|
||||
* varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
|
||||
variables, not just unregister them.
|
||||
|
||||
2001-05-10 Fernando Nasser <fnasser@redhat.com>
|
||||
|
||||
* varobj.c (c_number_of_children): Check for target type of void*,
|
||||
|
@ -1639,7 +1639,7 @@ value_of_root (struct varobj **var_handle, int *type_changed)
|
||||
{
|
||||
tmp_var->obj_name =
|
||||
savestring (var->obj_name, strlen (var->obj_name));
|
||||
uninstall_variable (var);
|
||||
varobj_delete (var, NULL, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user