Skip to content

Commit f471776

Browse files
committed
Virtual classes need virtual destructors
1 parent cc4e2ec commit f471776

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/torchcodec/_core/Transform.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace facebook::torchcodec {
1515
class Transform {
1616
public:
1717
virtual std::string getFilterGraphCpu() const = 0;
18+
virtual ~Transform() = default;
1819

1920
// If the transformation does not change the output frame dimensions, then
2021
// there is no need to override this member function. The default

0 commit comments

Comments
 (0)