]> git.saurik.com Git - wxWidgets.git/commitdiff
Delete the filesystem used by wxWebViewArchiveHandler when we are done with it. Fixes...
authorSteve Lamerton <steve.lamerton@gmail.com>
Wed, 5 Oct 2011 21:21:51 +0000 (21:21 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Wed, 5 Oct 2011 21:21:51 +0000 (21:21 +0000)
Closes #13500

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/webviewarchivehandler.h
src/common/webviewarchivehandler.cpp

index a0d02b6f27223a17d1846b7b5754347a3a79cf09..75a52659412ff53dbfaafb4f7fa11095573c4f95 100644 (file)
@@ -26,7 +26,7 @@ class WXDLLIMPEXP_WEBVIEW wxWebViewArchiveHandler : public wxWebViewHandler
 {
 public:
     wxWebViewArchiveHandler(const wxString& scheme);
-    virtual ~wxWebViewArchiveHandler() {}
+    virtual ~wxWebViewArchiveHandler();
     virtual wxFSFile* GetFile(const wxString &uri);
 private:
     wxFileSystem* m_fileSystem;
index 10f15df7e07918728c78ec6ee622ca06bfb55840..438426b20327b999794016fe0d64bed4b8459bb9 100644 (file)
@@ -50,6 +50,11 @@ wxWebViewArchiveHandler::wxWebViewArchiveHandler(const wxString& scheme) :
     m_fileSystem = new wxFileSystem();
 }
 
+wxWebViewArchiveHandler::~wxWebViewArchiveHandler()
+{
+    wxDELETE(m_fileSystem);
+}
+
 wxFSFile* wxWebViewArchiveHandler::GetFile(const wxString &uri)
 {
     //If there is a fragment at the end of the path then we need to strip it