Delete the filesystem used by wxWebViewArchiveHandler when we are done with it. Fixes a memory leak.
Closes #13500 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -26,7 +26,7 @@ class WXDLLIMPEXP_WEBVIEW wxWebViewArchiveHandler : public wxWebViewHandler
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxWebViewArchiveHandler(const wxString& scheme);
|
wxWebViewArchiveHandler(const wxString& scheme);
|
||||||
virtual ~wxWebViewArchiveHandler() {}
|
virtual ~wxWebViewArchiveHandler();
|
||||||
virtual wxFSFile* GetFile(const wxString &uri);
|
virtual wxFSFile* GetFile(const wxString &uri);
|
||||||
private:
|
private:
|
||||||
wxFileSystem* m_fileSystem;
|
wxFileSystem* m_fileSystem;
|
||||||
|
@@ -50,6 +50,11 @@ wxWebViewArchiveHandler::wxWebViewArchiveHandler(const wxString& scheme) :
|
|||||||
m_fileSystem = new wxFileSystem();
|
m_fileSystem = new wxFileSystem();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxWebViewArchiveHandler::~wxWebViewArchiveHandler()
|
||||||
|
{
|
||||||
|
wxDELETE(m_fileSystem);
|
||||||
|
}
|
||||||
|
|
||||||
wxFSFile* wxWebViewArchiveHandler::GetFile(const wxString &uri)
|
wxFSFile* wxWebViewArchiveHandler::GetFile(const wxString &uri)
|
||||||
{
|
{
|
||||||
//If there is a fragment at the end of the path then we need to strip it
|
//If there is a fragment at the end of the path then we need to strip it
|
||||||
|
Reference in New Issue
Block a user