diff --git a/modules/viz/include/opencv2/viz/widgets.hpp b/modules/viz/include/opencv2/viz/widgets.hpp index dcc1165660..cdfe20800f 100644 --- a/modules/viz/include/opencv2/viz/widgets.hpp +++ b/modules/viz/include/opencv2/viz/widgets.hpp @@ -95,7 +95,7 @@ namespace cv Widget(); Widget(const Widget& other); Widget& operator=(const Widget& other); - ~Widget(); + virtual ~Widget(); /** @brief Creates a widget from ply file.