From 4e55acc667bbadc104f71e1ee3a50b0fab38aea6 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 20 Jan 2007 19:45:05 +0000 Subject: Fixed a minor memory issue in the serializer. --- src/serializer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serializer.cpp b/src/serializer.cpp index 587f613..407aab2 100644 --- a/src/serializer.cpp +++ b/src/serializer.cpp @@ -321,7 +321,7 @@ Serializer &operator>>( Serializer &ar, std::string &s ) tmp[l] = '\0'; ar.read( tmp, l ); s = tmp; - delete tmp; + delete[] tmp; return ar; } -- cgit v1.2.3