- Many fixes to the four circle codes during taking the new code into

operation.
- Fixed some missing output
- Second generation histogram memory and velocity selector objects
- Fixed a problem in diffscan
This commit is contained in:
koennecke
2009-05-15 13:21:20 +00:00
parent 8c6d95bee6
commit 3f3f0810e5
34 changed files with 1014 additions and 117 deletions

View File

@ -387,7 +387,7 @@ void SCDeleteConnection(void *pData)
}
/* remove possible buffers */
if (pVictim->data != NULL) {
if (pVictim->data != NULL && pVictim->dataOwner == 1) {
DeleteDynString(pVictim->data);
}
@ -427,6 +427,7 @@ SConnection *SCCopyConnection(SConnection * pCon)
result->contextStack = -1;
result->iList = -1;
result->runLevel = pCon->runLevel;
result->data = pCon->data;
return result;
}
@ -869,7 +870,7 @@ int SCStartBuffering(SConnection * pCon)
if (!VerifyConnection(pCon)) {
return 0;
}
if (pCon->data != NULL) {
if (pCon->data != NULL && pCon->dataOwner == 1) {
DeleteDynString(pCon->data);
}
pCon->data = CreateDynString(128, 128);
@ -878,6 +879,7 @@ int SCStartBuffering(SConnection * pCon)
}
pCon->oldWriteFunc = pCon->write;
pCon->write = SCBufferWrite;
pCon->dataOwner = 1;
return 1;
}