MB-24426: Use virtual destructors for some of the DCP classes 34/78334/3
authorManu Dhundi <manu@couchbase.com>
Thu, 18 May 2017 21:35:42 +0000 (14:35 -0700)
committerDave Rigby <daver@couchbase.com>
Fri, 19 May 2017 07:53:15 +0000 (07:53 +0000)
commitded7f50847ef77d2201f766b2db235100539ecfe
tree82fc6309e7cb55ee306e1a23c7e62a66cd199e01
parent61b5ad4f25a87492661c02ad40922d290faa6a4f
MB-24426: Use virtual destructors for some of the DCP classes

DCP classes like 'DCPProducer', 'DCPConsumer', 'Consumer',
'ActiveStream' and 'PassiveStream' have subclasses derived from them.
It is appropriate to use virtual destructors to avoid any memory
leaks during object deletion.

Change-Id: I8b8457095b7c9914ca2c3d4b18a2251833e6c770
Reviewed-on: http://review.couchbase.org/78334
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
src/dcp/consumer.h
src/dcp/producer.h
src/dcp/stream.h
src/tapconnection.h