Removed a memory leak in fs_zip.cpp; trivial formatting in helpdata.cpp

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-04-17 09:28:18 +00:00
parent c5da51bcb3
commit ad2fbd102d
5 changed files with 17 additions and 6 deletions

View File

@@ -86,7 +86,7 @@ slashes.
Returns TRUE if the file exists. It also returns TRUE if the file is
a directory.
\membersection{::wxFileModificationTime}
\membersection{::wxFileModificationTime}\label{wxfilemodificationtime}
\func{time\_t}{wxFileModificationTime}{\param{const wxString\& }{filename}}

View File

@@ -1534,6 +1534,11 @@ Note that the size passed is of
the whole window: call \helpref{wxWindow::GetClientSize}{wxwindowgetclientsize} for the area which may be
used by the application.
When a window is resized, usually only a small part of the window is damaged and you
may only need to repaint that area. However, if your drawing depends on the size of the window,
you may need to clear the DC explicitly and repaint the whole window. In which case, you
may need to call \helpref{wxWindow::Refresh}{wxwindowrefresh} to invalidate the entire window.
\wxheading{See also}
\helpref{wxSizeEvent}{wxsizeevent},\rtfsp

View File

@@ -12,6 +12,7 @@
WXDIR = $(WXWIN)
PROGRAM=demo
EXTRALIBS=htmlhelp.lib
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.vc

View File

@@ -85,7 +85,12 @@ wxFSFile* wxZipFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& l
GetAnchor(location),
wxDateTime(wxFileModificationTime(left)));
}
else return NULL;
else
{
if (s)
delete s;
return NULL;
}
}

View File

@@ -538,10 +538,10 @@ bool wxHtmlHelpData::AddBook(const wxString& book)
fi = fsys.OpenFile(bookFull);
if (fi == NULL)
{
wxLogError(_("Cannot open HTML help book: %s"), bookFull.c_str());
return FALSE;
}
{
wxLogError(_("Cannot open HTML help book: %s"), bookFull.c_str());
return FALSE;
}
fsys.ChangePathTo(bookFull);
s = fi -> GetStream();
sz = s -> GetSize();