From da1b75b5d5a9e9d437886d324f61241808fe05ab Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Thu, 20 Sep 2018 12:06:55 -0700 Subject: Add a virtual destructor to the new class with virtual methods --- src/compiler/cpp_generator.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/compiler') diff --git a/src/compiler/cpp_generator.cc b/src/compiler/cpp_generator.cc index 0acd211009..56716493dc 100644 --- a/src/compiler/cpp_generator.cc +++ b/src/compiler/cpp_generator.cc @@ -560,6 +560,7 @@ void PrintHeaderClientMethodCallbackInterfacesStart( // "Raw" methods since the callback-based API returns unowned raw pointers printer->Print(" public:\n"); printer->Indent(); + printer->Print("virtual ~experimental_async_interface() {}\n"); } void PrintHeaderClientMethodCallbackInterfaces( -- cgit v1.2.3