git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13336
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- 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
- 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)
- fixed redraw problems in dynamically resized wxStaticText
- fixed wxProgressDialog for ranges > 65535
- wxFontEnumerator now returns all fonts, not only TrueType ones
- 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
bool BuildRequest(const wxString& path, wxHTTP_Req req);
void SendHeaders();
bool ParseHeaders();
bool BuildRequest(const wxString& path, wxHTTP_Req req);
void SendHeaders();
bool ParseHeaders();
+
+ // deletes the header value strings
+ void ClearHeaders();
};
#endif // wxUSE_PROTOCOL_HTTP
};
#endif // wxUSE_PROTOCOL_HTTP
+{
+ ClearHeaders();
+
+ delete m_addr;
+}
+
+void wxHTTP::ClearHeaders()
{
// wxString isn't a wxObject
wxNode *node = m_headers.First();
{
// wxString isn't a wxObject
wxNode *node = m_headers.First();
- if (m_addr) {
- delete m_addr;
- m_addr = NULL;
- }
}
wxString wxHTTP::GetContentType()
}
wxString wxHTTP::GetContentType()
void wxHTTP::SetHeader(const wxString& header, const wxString& h_data)
{
if (m_read) {
void wxHTTP::SetHeader(const wxString& header, const wxString& h_data)
{
if (m_read) {
wxString line;
wxStringTokenizer tokenzr;
wxString line;
wxStringTokenizer tokenzr;
m_read = TRUE;
#if defined(__VISAGECPP__)
m_read = TRUE;
#if defined(__VISAGECPP__)