THRIFT-1106. cpp: C++ code TAsyncProtocolProcessor.h & TAsyncBufferProcessor.h dont...
authorBryan Duxbury <bryanduxbury@apache.org>
Wed, 23 Mar 2011 18:05:27 +0000 (18:05 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Wed, 23 Mar 2011 18:05:27 +0000 (18:05 +0000)
Patch: Fasih

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1084656 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/async/TAsyncBufferProcessor.h
lib/cpp/src/async/TAsyncProtocolProcessor.h

index 06a503e..bfaf323 100644 (file)
@@ -38,6 +38,7 @@ class TAsyncBufferProcessor {
       std::tr1::function<void(bool healthy)> _return,
       boost::shared_ptr<apache::thrift::transport::TBufferBase> ibuf,
       boost::shared_ptr<apache::thrift::transport::TBufferBase> obuf) = 0;
+  virtual ~TAsyncBufferProcessor() {}
 };
 
 }}} // apache::thrift::async
index 7ec718b..647bbb6 100644 (file)
@@ -40,6 +40,8 @@ class TAsyncProtocolProcessor : public TAsyncBufferProcessor {
       boost::shared_ptr<apache::thrift::transport::TBufferBase> ibuf,
       boost::shared_ptr<apache::thrift::transport::TBufferBase> obuf);
 
+  virtual ~TAsyncProtocolProcessor() {}
+
  private:
   static void finish(
       std::tr1::function<void(bool healthy)> _return,