Skip to content

Commit 785ebb6

Browse files
author
Rafał Hibner
committed
Add missing destructor
1 parent 88704b4 commit 785ebb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpp/src/arrow/util/async_generator.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,7 @@ template <typename T>
854854
class PushGenerator {
855855
struct State {
856856
State() {}
857+
virtual ~State() {}
857858

858859
virtual bool Push(Result<T> result) {
859860
return PushUnlocked(std::move(result), mutex.Lock());
@@ -931,7 +932,7 @@ class PushGenerator {
931932
explicit DoHandle(StateWithBackpressure& state)
932933
: state_(state), start_size_(state_.result_q.size()) {}
933934

934-
~DoHandle() {
935+
virtual ~DoHandle() {
935936
// unsynced access is safe since DoHandle is internally only used when the
936937
// lock is held
937938
size_t end_size = state_.result_q.size();

0 commit comments

Comments
 (0)