* 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:
Guilhem Lavaux
1998-08-23 14:06:39 +00:00
parent d8260b2f57
commit 6f34921d93
2 changed files with 5 additions and 0 deletions

View File

@@ -254,6 +254,8 @@ void wxObject::StoreObject( wxObjectOutputStream& stream )
serial->SetObject(this);
serial->StoreObject(stream);
delete serial;
}
void wxObject::LoadObject( wxObjectInputStream& stream )
@@ -275,6 +277,8 @@ void wxObject::LoadObject( wxObjectInputStream& stream )
serial->SetObject(this);
serial->LoadObject(stream);
delete serial;
}
#endif

View File

@@ -42,6 +42,7 @@ wxStreamBuffer::wxStreamBuffer(wxOutputStream& o_stream)
wxStreamBuffer::~wxStreamBuffer()
{
wxDELETEA(m_buffer_start);
}
void wxStreamBuffer::WriteBack(char c)