Fixed memory leak

git-svn-id: http://yate.null.ro/svn/yate/trunk@1352 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2007-06-05 14:27:26 +00:00
parent c0d76ac739
commit 28ff045913
1 changed files with 3 additions and 1 deletions

View File

@ -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;