Skip to content

Commit

Permalink
Bugfix: the destructor should be virtual.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhop committed Jun 5, 2024
1 parent 4654bc1 commit e5b8978
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/str-val.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ struct StrValBase
bool isBuffer, isIndexValid, isBad;

StrValBase() : data(NULL), size(0), length(0), index(0), byteIndex(0), isBuffer(false), isIndexValid(false), isBad(false) {}
virtual ~StrValBase() {}

operator re2::StringPiece() const { return re2::StringPiece(data, size); }

Expand Down

0 comments on commit e5b8978

Please sign in to comment.