Store a pointer to each ClassFactory so we can correctly release it when the browser closes. This fixes a few more memory leaks.

See #13500

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-10-05 17:23:51 +00:00
parent 24fb46ea48
commit 3949871086
3 changed files with 13 additions and 0 deletions

View File

@@ -24,6 +24,7 @@
struct IHTMLDocument2;
class wxFSFile;
class ClassFactory;
class WXDLLIMPEXP_WEBVIEW wxWebViewIE : public wxWebView
{
@@ -42,6 +43,8 @@ public:
Create(parent, id, url, pos, size, style, name);
}
~wxWebViewIE();
bool Create(wxWindow* parent,
wxWindowID id,
const wxString& url = wxWebViewDefaultURLStr,
@@ -149,6 +152,7 @@ private:
//an item from the history. The position is stored as an int, and reflects
//where we are in the history list.
wxVector<wxSharedPtr<wxWebViewHistoryItem> > m_historyList;
wxVector<ClassFactory*> m_factories;
int m_historyPosition;
bool m_historyLoadingFromList;
bool m_historyEnabled;