FIX: not cache param Fields on WXGTK

Change-Id: Ied31478d738b3ac43e9cbe10888ebeab623a982a
Jira: STUDIO-6909
This commit is contained in:
chunmao.guo 2024-05-22 15:15:10 +08:00 committed by Lane.Wei
parent c023e1bd77
commit c88a7c9068
1 changed files with 4 additions and 0 deletions

View File

@ -581,6 +581,7 @@ static void unbind_events(wxEvtHandler *h)
void free_window(wxWindow *win)
{
#if !defined(__WXGTK__)
unbind_events(win);
for (auto c : win->GetChildren())
if (dynamic_cast<wxTextCtrl*>(c))
@ -591,6 +592,9 @@ void free_window(wxWindow *win)
win->Reparent(wxGetApp().mainframe);
if (win->GetClientData())
reinterpret_cast<std::deque<wxWindow *>*>(win->GetClientData())->push_back(win);
#else
delete win;
#endif
}
template<class T>