X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d847e69ac7d3ea89c66a3387fbcb634a2c930bcc..830efc9b0cb87eae22d4435af7858175017522ab:/samples/text/text.cpp?ds=sidebyside diff --git a/samples/text/text.cpp b/samples/text/text.cpp index 03d6096f28..5f4ba2899c 100644 --- a/samples/text/text.cpp +++ b/samples/text/text.cpp @@ -100,7 +100,7 @@ class MyPanel: public wxPanel { public: MyPanel(wxFrame *frame, int x, int y, int w, int h); - virtual ~MyPanel() { wxLog::SetActiveTarget(m_logOld); } + virtual ~MyPanel() { delete wxLog::SetActiveTarget(m_logOld); } #if wxUSE_CLIPBOARD void DoPasteFromClipboard();