Don't call IAutoComplete::Init() twice for the same control as this leaks memory, just change the strings used for completion instead (closes #10968)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -18,7 +18,12 @@
|
||||
class WXDLLIMPEXP_CORE wxTextEntry : public wxTextEntryBase
|
||||
{
|
||||
public:
|
||||
wxTextEntry() { }
|
||||
wxTextEntry()
|
||||
{
|
||||
#if wxUSE_OLE
|
||||
m_enumStrings = NULL;
|
||||
#endif // wxUSE_OLE
|
||||
}
|
||||
|
||||
// implement wxTextEntryBase pure virtual methods
|
||||
virtual void WriteText(const wxString& text);
|
||||
@@ -74,6 +79,11 @@ protected:
|
||||
private:
|
||||
// implement this to return the HWND of the EDIT control
|
||||
virtual WXHWND GetEditHWND() const = 0;
|
||||
|
||||
#if wxUSE_OLE
|
||||
// enumerator for strings currently used for auto-completion or NULL
|
||||
class wxIEnumString *m_enumStrings;
|
||||
#endif // wxUSE_OLE
|
||||
};
|
||||
|
||||
#endif // _WX_MSW_TEXTENTRY_H_
|
||||
|
Reference in New Issue
Block a user