Commit 51d61b5e authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by Generic Bliss account for Control Software
Browse files

CtControl: fix memory leak in CtControl::readBlock:

* When reading more than one image block:
  + Not in stripe-concat acq_mode or
  + Reading more than one buffer
parent 0801d32e
......@@ -923,6 +923,7 @@ void CtControl::readBlock(Data &aReturnData,long frameNumber,long readBlockLen,
aReturnData = auxData;
Buffer *buffer = new Buffer(imageSize * readBlockLen);
if (readBlockLen > 1) {
if (aReturnData.dimensions.size() == 2)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment