From 35fdba23eae48e3ea349dc42f36cc18cad2e2038 Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Thu, 7 Apr 2011 12:34:57 -0500 Subject: [PATCH] Fix wrong delete syntax in CommentedEnumType --- src/Type.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Type.cc b/src/Type.cc index 6c8035ca31..5f8358399a 100644 --- a/src/Type.cc +++ b/src/Type.cc @@ -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; } }