* Fixed two memory leaks.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -254,6 +254,8 @@ void wxObject::StoreObject( wxObjectOutputStream& stream )
|
|||||||
|
|
||||||
serial->SetObject(this);
|
serial->SetObject(this);
|
||||||
serial->StoreObject(stream);
|
serial->StoreObject(stream);
|
||||||
|
|
||||||
|
delete serial;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxObject::LoadObject( wxObjectInputStream& stream )
|
void wxObject::LoadObject( wxObjectInputStream& stream )
|
||||||
@@ -275,6 +277,8 @@ void wxObject::LoadObject( wxObjectInputStream& stream )
|
|||||||
|
|
||||||
serial->SetObject(this);
|
serial->SetObject(this);
|
||||||
serial->LoadObject(stream);
|
serial->LoadObject(stream);
|
||||||
|
|
||||||
|
delete serial;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -42,6 +42,7 @@ wxStreamBuffer::wxStreamBuffer(wxOutputStream& o_stream)
|
|||||||
|
|
||||||
wxStreamBuffer::~wxStreamBuffer()
|
wxStreamBuffer::~wxStreamBuffer()
|
||||||
{
|
{
|
||||||
|
wxDELETEA(m_buffer_start);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxStreamBuffer::WriteBack(char c)
|
void wxStreamBuffer::WriteBack(char c)
|
||||||
|
Reference in New Issue
Block a user