Browse Source

Change delete to delete[] to match new[].

Marc Lepage 13 years ago
parent
commit
b788d379d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/utf8.cpp

+ 1 - 1
src/common/utf8.cpp

@@ -41,7 +41,7 @@ std::string to_utf8(LPCWSTR wstr)
 	if (ok)
 	if (ok)
 		ret = utf8_str;
 		ret = utf8_str;
 
 
-	delete utf8_str;
+	delete[] utf8_str;
 	return ret;
 	return ret;
 }
 }