Libmv: Fix missing virtual destructor in frame access sub-class
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 20 Dec 2016 09:22:54 +0000 (10:22 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 20 Dec 2016 11:29:41 +0000 (12:29 +0100)
This is undefined behavior in C++ and Clang was complaining a lot
about this.

intern/libmv/intern/frame_accessor.cc

index 9213cc311b39ae375d26d1385a336cb93aa39135..5d274d7ccca20161a5ef7b55d5aeb1b1d01d50c8 100644 (file)
@@ -45,6 +45,9 @@ struct LibmvFrameAccessor : public FrameAccessor {
       get_image_callback_(get_image_callback),
       release_image_callback_(release_image_callback) { }
 
+  virtual ~LibmvFrameAccessor() {
+  }
+
   libmv_InputMode get_libmv_input_mode(InputMode input_mode) {
     switch (input_mode) {
 #define CHECK_INPUT_MODE(mode) \