diff options
author | Vijay Pai <vpai@google.com> | 2018-09-20 12:06:55 -0700 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2018-09-20 13:30:20 -0700 |
commit | da1b75b5d5a9e9d437886d324f61241808fe05ab (patch) | |
tree | 786c0d1db785dedd1eae5c6f70e6463c22b1324c /src/compiler | |
parent | 17fc4d4029e0525e8cb0a25686e078f5842b3644 (diff) |
Add a virtual destructor to the new class with virtual methods
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/cpp_generator.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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( |