Fix wrong delete syntax in CommentedEnumType

This commit is contained in:
Jon Siwek 2011-04-07 12:34:57 -05:00
parent b8f6c5bc7d
commit 35fdba23ea

View file

@ -1322,7 +1322,7 @@ void CommentedEnumType::AddComment(const string& module_name, const char* name,
{
comments[fullname.c_str()]->splice(comments[fullname.c_str()]->end(),
*new_comments);
delete [] new_comments;
delete new_comments;
}
}