diff --git a/include/wx/log.h b/include/wx/log.h index edbddebb63..28272c9b9c 100644 --- a/include/wx/log.h +++ b/include/wx/log.h @@ -313,7 +313,7 @@ class WXDLLEXPORT wxLogChain : public wxLog { public: wxLogChain(wxLog *logger); - virtual ~wxLogChain() { delete m_logOld; } + virtual ~wxLogChain(); // change the new log target void SetLog(wxLog *logger);