From: Daekwang Ryu Date: Mon, 27 Sep 2021 05:12:01 +0000 (+0900) Subject: Add a virtual destructor X-Git-Tag: dali_2.0.46~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9238f90cf2d5b0c9cae4aff3d83f1bc29085bfd;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Add a virtual destructor This was detected by static analysis. When there is no desctuctor, It doesn't call derived class's destructor. Change-Id: Ic98f82a1ffe10175005cf041101dad597451eabc --- diff --git a/dali/internal/window-system/common/native-image-surface-impl.h b/dali/internal/window-system/common/native-image-surface-impl.h index 2151917..a52cf65 100644 --- a/dali/internal/window-system/common/native-image-surface-impl.h +++ b/dali/internal/window-system/common/native-image-surface-impl.h @@ -38,6 +38,11 @@ class NativeImageSurface { public: /** + * @brief Destructor + */ + virtual ~NativeImageSurface() = default; + + /** * @copydoc Dali::NativeImageSurface::GetNativeRenderable() */ virtual Any GetNativeRenderable() = 0;