Fixed memory leak
git-svn-id: http://yate.null.ro/svn/yate/trunk@1352 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
c0d76ac739
commit
28ff045913
|
@ -1129,8 +1129,10 @@ unsigned int* WpData::processCicList(const String& cicList)
|
|||
ObjList* listSplit = 0;
|
||||
char separator = (-1 != cicList.find(',')) ? ',' : '.';
|
||||
listSplit = cicList.split(separator,false);
|
||||
if (!(listSplit || listSplit->count()))
|
||||
if (!listSplit->count()) {
|
||||
TelEngine::destruct(listSplit);
|
||||
return 0;
|
||||
}
|
||||
// Split the intervals into single code elements
|
||||
unsigned int* cicCodes = new unsigned int[m_chans];
|
||||
bool ok = true;
|
||||
|
|
Loading…
Reference in New Issue