equal
deleted
inserted
replaced
43 } |
43 } |
44 |
44 |
45 gint TMSIPCallBodyImpl::Create(TMSCallBody*& bodyimpl) |
45 gint TMSIPCallBodyImpl::Create(TMSCallBody*& bodyimpl) |
46 { |
46 { |
47 gint ret(TMS_RESULT_INSUFFICIENT_MEMORY); |
47 gint ret(TMS_RESULT_INSUFFICIENT_MEMORY); |
48 TMSIPCallBodyImpl* self = new TMSIPCallBodyImpl; |
48 TMSIPCallBodyImpl* self = new TMSIPCallBodyImpl(); |
49 |
49 |
50 TRACE_PRN_FN_ENT; |
50 TRACE_PRN_FN_ENT; |
51 if (self) |
51 if (self) |
52 { |
52 { |
53 ret = self->PostConstruct(); |
53 ret = self->PostConstruct(); |
192 } |
192 } |
193 |
193 |
194 if (itStrm) |
194 if (itStrm) |
195 { |
195 { |
196 iStreamsVector.erase(itStrm); // Remove from array |
196 iStreamsVector.erase(itStrm); // Remove from array |
197 // Don't delete itStrm as the iterator advanced to the next |
197 // Don't delete itStrm as the iterator advanced to the next |
198 // item on the list |
198 // item on the list |
199 ret = TMSStreamImpl::Delete(strm); |
199 ret = TMSStreamImpl::Delete(strm); |
200 } |
200 } |
201 TRACE_PRN_FN_EXT; |
201 TRACE_PRN_FN_EXT; |
202 return ret; |
202 return ret; |