I think here should be SAFE_DELETE(m_processor) to prevent memory leak.