Bug in func& operator= fixed

This commit is contained in:
Valk Richard Li
2019-08-11 17:11:18 +08:00
committed by GitHub
parent 7dcbd6fd10
commit aa2c6ad4cb
5 changed files with 55 additions and 43 deletions
+5 -10
View File
@@ -25,18 +25,13 @@ class var_stack
{
var_stack_unit *temp=head;
var_stack_unit *this_node=NULL;
if(head->next)
while(temp->next)
{
while(temp->next)
{
this_node=temp;
temp=temp->next;
delete this_node;
}
delete temp;
this_node=temp;
temp=temp->next;
delete this_node;
}
else
delete head;
delete temp;
}
void append_var(std::string& varia_name,var& temp_var)
{