summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-10-05 21:45:27 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-10-05 21:45:27 +0000
commit4a43cb1c6e5ba304d70df7066c61c52718a5f249 (patch)
treed8aca0414b771cb2b7532d6f4f9d2ed87f77d703 /src/net
parent8415f7791ea8dc84148c65d04c288d8d12eb50bf (diff)
downloadmana-4a43cb1c6e5ba304d70df7066c61c52718a5f249.tar.gz
mana-4a43cb1c6e5ba304d70df7066c61c52718a5f249.tar.bz2
mana-4a43cb1c6e5ba304d70df7066c61c52718a5f249.tar.xz
mana-4a43cb1c6e5ba304d70df7066c61c52718a5f249.zip
Fixed some resource cleanup and memory leaks. Also changed the way dangling
references to resources are reported to be more informative.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/messagein.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp
index e3f8c28e..6086e096 100644
--- a/src/net/messagein.cpp
+++ b/src/net/messagein.cpp
@@ -145,7 +145,7 @@ MessageIn::readString(int length)
mPos += stringLength;
readString = tmpString;
- delete tmpString;
+ delete[] tmpString;
return readString;
}