summaryrefslogtreecommitdiff
path: root/test/basicserver/testbasicserver.cpp
diff options
context:
space:
mode:
authorMartin Ebourne <martin@ebourne.me.uk>2005-12-12 20:50:00 +0000
committerMartin Ebourne <martin@ebourne.me.uk>2005-12-12 20:50:00 +0000
commit3bedf8846f4d7a5cb38276b274662d62a36dcd52 (patch)
tree9d51de8b0f3d06ba6549a5a1958e52f592343140 /test/basicserver/testbasicserver.cpp
parent81d8eda2419e7a23088a98cdfc52a305c9ceac0d (diff)
Marged chris/win32/merge/07-win32-fixes at r210 to trunk
Diffstat (limited to 'test/basicserver/testbasicserver.cpp')
-rwxr-xr-xtest/basicserver/testbasicserver.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/basicserver/testbasicserver.cpp b/test/basicserver/testbasicserver.cpp
index 4d124b1d..f5185b96 100755
--- a/test/basicserver/testbasicserver.cpp
+++ b/test/basicserver/testbasicserver.cpp
@@ -349,9 +349,11 @@ void Srv2TestConversations(const std::vector<IOStream *> &conns)
for(unsigned int c = 0; c < conns.size(); ++c)
{
- delete getline[c];
+ if ( getline[c] ) delete getline[c];
+ getline[c] = 0;
}
- delete [] getline;
+ if ( getline ) delete [] getline;
+ getline = 0;
}
void TestStreamReceive(TestProtocolClient &protocol, int value, bool uncertainstream)