Core/WorldSession: Removed a silly return that might have been leaking memory under rare conditions

This commit is contained in:
Shauren committed 2013-08-23 18:28:35 +02:00
1 parent d612a6a1e3
commit a9182245f9
1 file changed
-3
-3
View File
@@ -172,10 +172,7 @@ WorldSession::~WorldSession()
int32 z_res = deflateEnd(_compressionStream);
if (z_res != Z_OK && z_res != Z_DATA_ERROR) // Z_DATA_ERROR signals that internal state was BUSY
{
TC_LOG_ERROR(LOG_FILTER_NETWORKIO, "Can't close packet compression stream (zlib: deflateEnd) Error code: %i (%s)", z_res, zError(z_res));
return;
}
delete _compressionStream;
}