summaryrefslogtreecommitdiffstats
path: root/src/ByteBuffer.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-06-19 11:03:40 +0200
committerMattes D <github@xoft.cz>2014-06-19 11:03:40 +0200
commit4c7545a82ad8f086c66de7a7cfb26ba1800780fa (patch)
treed6a37e6433f973765c8ca63e408dbbd420b08d70 /src/ByteBuffer.cpp
parentMerge pull request #1096 from mc-server/redstonerefactor (diff)
parentNullify deleted pointers. (diff)
downloadcuberite-4c7545a82ad8f086c66de7a7cfb26ba1800780fa.tar
cuberite-4c7545a82ad8f086c66de7a7cfb26ba1800780fa.tar.gz
cuberite-4c7545a82ad8f086c66de7a7cfb26ba1800780fa.tar.bz2
cuberite-4c7545a82ad8f086c66de7a7cfb26ba1800780fa.tar.lz
cuberite-4c7545a82ad8f086c66de7a7cfb26ba1800780fa.tar.xz
cuberite-4c7545a82ad8f086c66de7a7cfb26ba1800780fa.tar.zst
cuberite-4c7545a82ad8f086c66de7a7cfb26ba1800780fa.zip
Diffstat (limited to '')
-rw-r--r--src/ByteBuffer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ByteBuffer.cpp b/src/ByteBuffer.cpp
index d77f402fd..1a69c856f 100644
--- a/src/ByteBuffer.cpp
+++ b/src/ByteBuffer.cpp
@@ -165,6 +165,7 @@ cByteBuffer::~cByteBuffer()
{
CheckValid();
delete[] m_Buffer;
+ m_Buffer = NULL;
}