From bffb5c2247c5705401499ff13b686b119d9918b6 Mon Sep 17 00:00:00 2001 From: Abraham Corea Diaz Date: Fri, 9 Jul 2021 23:35:39 +0000 Subject: Define virtual destructors in Client interfaces. This patch adds virtual destructors to all Client and Delegate interfaces that did not have one. Bug: b/156129407 Change-Id: I8b7365ab8a38b9e76a45ced08dd94d1aa595209b Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/3011415 Commit-Queue: Jordan Bayles Reviewed-by: Jordan Bayles Reviewed-by: mark a. foltz --- osp/impl/service_publisher_impl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'osp/impl/service_publisher_impl.h') diff --git a/osp/impl/service_publisher_impl.h b/osp/impl/service_publisher_impl.h index 1817ab1f..d15e4dc9 100644 --- a/osp/impl/service_publisher_impl.h +++ b/osp/impl/service_publisher_impl.h @@ -18,7 +18,6 @@ class ServicePublisherImpl final : public ServicePublisher, class Delegate { public: Delegate(); - virtual ~Delegate(); void SetPublisherImpl(ServicePublisherImpl* publisher); @@ -29,6 +28,8 @@ class ServicePublisherImpl final : public ServicePublisher, virtual void ResumePublisher() = 0; protected: + virtual ~Delegate(); + void SetState(State state) { publisher_->SetState(state); } ServicePublisherImpl* publisher_ = nullptr; -- cgit v1.2.3