* 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): 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*,
{
tmp_var->obj_name =
savestring (var->obj_name, strlen (var->obj_name));
- uninstall_variable (var);
+ varobj_delete (var, NULL, 0);
}
else
{