Fixed memory leaks.

This commit is contained in:
Vincent Richard 2006-01-15 11:16:44 +00:00
parent 6c946267b1
commit 3a2ed837ff

View File

@ -3188,6 +3188,16 @@ public:
{
public:
media_message()
: m_media_subtype(NULL)
{
}
~media_message()
{
delete m_media_subtype;
}
void go(IMAPParser& parser, string& line, string::size_type* currentPos)
{
DEBUG_ENTER_COMPONENT("media_message");
@ -4338,6 +4348,12 @@ public:
{
delete (*it);
}
for (std::vector <status_info*>::iterator it = m_status_info_list.begin() ;
it != m_status_info_list.end() ; ++it)
{
delete (*it);
}
}
void go(IMAPParser& parser, string& line, string::size_type* currentPos)