X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c5487b14442ddbc6e43ee2f4475b5a6ba251fb1..6e4ae332ac7d85be3592640ffef56a60924cc1c9:/docs/latex/wx/snglinst.tex?ds=sidebyside

diff --git a/docs/latex/wx/snglinst.tex b/docs/latex/wx/snglinst.tex
index 54517eaea3..3cae29f168 100644
--- a/docs/latex/wx/snglinst.tex
+++ b/docs/latex/wx/snglinst.tex
@@ -6,7 +6,7 @@
 %% Created:     08.06.01
 %% RCS-ID:      $Id$
 %% Copyright:   (c) 2001 Vadim Zeitlin
-%% License:     wxWidgets license
+%% License:     wxWindows license
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 \section{\class{wxSingleInstanceChecker}}\label{wxsingleinstancechecker}
@@ -30,6 +30,9 @@ bool MyApp::OnInit()
     {
         wxLogError(_("Another program instance is already running, aborting."));
 
+        delete m_checker; // OnExit() won't be called if we return false
+        m_checker = NULL;
+
         return false;
     }
 
@@ -62,6 +65,10 @@ No base class
 
 <wx/snglinst.h>
 
+\wxheading{Library}
+
+\helpref{wxBase}{librarieslist}
+
 \latexignore{\rtfignore{\wxheading{Members}}}
 
 \membersection{wxSingleInstanceChecker::wxSingleInstanceChecker}\label{wxsingleinstancecheckerctor}
