mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-01 05:24:57 +01:00
reduced gui_client crashes
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@168 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
@@ -46,10 +46,10 @@ qDrawPlot::~qDrawPlot(){
|
||||
Clear1DPlot();
|
||||
for(QVector<SlsQtH1D*>::iterator h = plot1D_hists.begin();h!=plot1D_hists.end();h++) delete *h;
|
||||
plot1D_hists.clear();
|
||||
delete[] lastImageArray; lastImageArray=0;
|
||||
if(lastImageArray) delete[] lastImageArray; lastImageArray=0;
|
||||
StartOrStopThread(0);
|
||||
delete myDet;
|
||||
for(int i=0;i<MAXCloneWindows;i++) delete winClone[i];
|
||||
for(int i=0;i<MAXCloneWindows;i++) if(winClone[i]) delete winClone[i];
|
||||
}
|
||||
|
||||
|
||||
@@ -469,10 +469,10 @@ void qDrawPlot::SetScanArgument(int scanArg){
|
||||
}else backwardScanPlot = false;
|
||||
|
||||
|
||||
|
||||
//1d
|
||||
if(histXAxis) delete [] histXAxis; histXAxis = new double [nPixelsX];
|
||||
if(histYAxis[0]) delete [] histYAxis[0];histYAxis[0] = new double [nPixelsX];
|
||||
|
||||
if(histYAxis[0]) delete [] histYAxis[0]; histYAxis[0] = new double [nPixelsX];
|
||||
|
||||
//2d
|
||||
if(lastImageArray) delete [] lastImageArray; lastImageArray = new double[nPixelsY*nPixelsX];
|
||||
|
||||
Reference in New Issue
Block a user