From 73028c4b8cc990c3166e3c3f30b58123e80464b5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 21 Jul 2002 20:44:11 +0000 Subject: [PATCH] fixed small memory leak git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/text/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();