From fd5630b45c025cc74a8f0053ad0f0814f1921b10 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 28 Nov 2002 13:28:33 +0000 Subject: [PATCH] fixed wrong usage example in wxLogChain section git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/log.tex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/latex/wx/log.tex b/docs/latex/wx/log.tex index 1a88333182..aed457e94d 100644 --- a/docs/latex/wx/log.tex +++ b/docs/latex/wx/log.tex @@ -380,7 +380,9 @@ wxLogChain *logChain = new wxLogChain(new wxLogStderr); // all the log messages are sent to stderr and also processed as usually ... -delete logChain; +// don't delete logChain directly as this would leave a dangling +// pointer as active log target, use SetActiveTarget() instead +delete wxLog::SetActiveTarget(...something else or NULL...); \end{verbatim}