@@ -197,6 +197,8 @@ void commandView(string infile, bool verbose)
197
197
free (intensity_int);
198
198
free (intensity_float);
199
199
delete sampleName;
200
+ sim->close ();
201
+ delete sim;
200
202
}
201
203
202
204
//
@@ -332,6 +334,7 @@ void commandCreate(string infile, string outfile, bool normalize, string manfile
332
334
333
335
}
334
336
sim->close ();
337
+ delete sim;
335
338
}
336
339
337
340
//
@@ -414,6 +417,8 @@ void commandIlluminus(string infile, string outfile, string manfile, int start_p
414
417
}
415
418
free (intensity_int);
416
419
free (intensity_float);
420
+ sim->close ();
421
+ delete sim;
417
422
}
418
423
419
424
void commandGenoSNP (string infile, string outfile, string manfile, int start_pos, int end_pos, bool verbose)
@@ -449,6 +454,7 @@ void commandGenoSNP(string infile, string outfile, string manfile, int start_pos
449
454
450
455
free (sampleName);
451
456
free (intensity);
457
+ sim->close ();
452
458
delete sim;
453
459
}
454
460
@@ -464,14 +470,15 @@ void commandQC(string infile, string magnitude, string xydiff, bool verbose)
464
470
" --magnitude, --xydiff for QC" << endl;
465
471
exit (1 );
466
472
}
467
- QC myqc = QC (infile, verbose);
473
+ QC *qc = new QC (infile, verbose);
468
474
if (magnitude!=" " ) {
469
- myqc. writeMagnitude (magnitude, verbose);
475
+ qc-> writeMagnitude (magnitude, verbose);
470
476
}
471
477
if (xydiff!=" " ) {
472
- myqc. writeXydiff (xydiff, verbose);
478
+ qc-> writeXydiff (xydiff, verbose);
473
479
}
474
- myqc.close ();
480
+ qc->close ();
481
+ delete qc;
475
482
476
483
}
477
484
0 commit comments