- fixes to the command line parsing error and usage messages
- modified wxFileName::CreateTempFileName() to open the file atomically
(if possible) and, especially, not to leak the file descriptors under Unix
+- memory leak in wxHTTP fixed (Dimitri)
All (GUI):
- fixed redraw problems in dynamically resized wxStaticText
- fixed wxProgressDialog for ranges > 65535
- wxFontEnumerator now returns all fonts, not only TrueType ones
+- wxTextCtrl with wxTE_RICH flag scrolls to the end when text is appended to it
2.3.2
-----
bool BuildRequest(const wxString& path, wxHTTP_Req req);
void SendHeaders();
bool ParseHeaders();
+
+ // deletes the header value strings
+ void ClearHeaders();
};
#endif // wxUSE_PROTOCOL_HTTP
}
wxHTTP::~wxHTTP()
+{
+ ClearHeaders();
+
+ delete m_addr;
+}
+
+void wxHTTP::ClearHeaders()
{
// wxString isn't a wxObject
wxNode *node = m_headers.First();
node = node->Next();
}
- if (m_addr) {
- delete m_addr;
- m_addr = NULL;
- }
+ m_headers.Clear();
}
wxString wxHTTP::GetContentType()
void wxHTTP::SetHeader(const wxString& header, const wxString& h_data)
{
if (m_read) {
- m_headers.Clear();
+ ClearHeaders();
m_read = FALSE;
}
wxString line;
wxStringTokenizer tokenzr;
- m_headers.Clear();
+ ClearHeaders();
m_read = TRUE;
#if defined(__VISAGECPP__)