bug fix for memory leak for every multi threading command when using API

This commit is contained in:
2018-06-12 12:17:30 +02:00
parent 17c20748bc
commit 7462d1002d
3 changed files with 32 additions and 6 deletions

View File

@ -270,7 +270,10 @@ slsDetector::~slsDetector(){
else
printf("Shared memory %d detached\n", shmId);
#endif
delete thisReceiver;
if(controlSocket) delete controlSocket;
if(stopSocket) delete stopSocket;
if(dataSocket) delete dataSocket;
if(thisReceiver) delete thisReceiver;
};
slsDetector::slsDetector(int pos, char *name, int id, int cport,multiSlsDetector *p) : slsDetectorUtils(),