aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-01-20 19:45:05 +0000
committerMike Buland <eichlan@xagasoft.com>2007-01-20 19:45:05 +0000
commit4e55acc667bbadc104f71e1ee3a50b0fab38aea6 (patch)
tree90ac7d2fa8bf77270109cd6db94ec0058dd8ad53 /src
parentc336c66be30204a62ae3d25b6a67ae8485b2d3e5 (diff)
downloadlibbu++-4e55acc667bbadc104f71e1ee3a50b0fab38aea6.tar.gz
libbu++-4e55acc667bbadc104f71e1ee3a50b0fab38aea6.tar.bz2
libbu++-4e55acc667bbadc104f71e1ee3a50b0fab38aea6.tar.xz
libbu++-4e55acc667bbadc104f71e1ee3a50b0fab38aea6.zip
Fixed a minor memory issue in the serializer.
Diffstat (limited to 'src')
-rw-r--r--src/serializer.cpp2
1 files changed, 1 insertions, 1 deletions
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 )
321 tmp[l] = '\0'; 321 tmp[l] = '\0';
322 ar.read( tmp, l ); 322 ar.read( tmp, l );
323 s = tmp; 323 s = tmp;
324 delete tmp; 324 delete[] tmp;
325 325
326 return ar; 326 return ar;
327} 327}