diff --git a/include/wx/html/htmlfilt.h b/include/wx/html/htmlfilt.h
index cffb72f211..e755ebb148 100644
--- a/include/wx/html/htmlfilt.h
+++ b/include/wx/html/htmlfilt.h
@@ -36,6 +36,9 @@ class WXDLLEXPORT wxHtmlFilter : public wxObject
public:
wxHtmlFilter() : wxObject() {}
+#ifdef __WXMAC_X__
+ virtual ~wxHtmlFilter() {}
+#endif
virtual bool CanRead(const wxFSFile& file) const = 0;
// returns TRUE if this filter is able to open&read given file