Skip to content
Snippets Groups Projects
Commit d0c7d10e authored by Jean Coquet's avatar Jean Coquet
Browse files

bug fix mem leak

parent 62e67d9d
Branches
Tags
No related merge requests found
static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Vacuum/CryoCooler/src/HeaterVessel.cpp,v 1.3 2009-03-31 09:00:32 jean_coquet Exp $";
static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Vacuum/CryoCooler/src/HeaterVessel.cpp,v 1.4 2009-06-10 15:33:05 jean_coquet Exp $";
//+=============================================================================
//
// file : HeaterVessel.cpp
......@@ -13,9 +13,15 @@ static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Vacuum/CryoCoo
//
// $Author: jean_coquet $
//
// $Revision: 1.3 $
// $Revision: 1.4 $
//
// $Log: not supported by cvs2svn $
// Revision 1.3 2009/03/31 09:00:32 jean_coquet
// better visualisation of errors
// improvements
// Tested with my test PLC
// to be tested with real CryoCooler
//
// Revision 1.2 2009/03/11 08:05:33 jean_coquet
// mise au point a koln chezACCEL
//
......@@ -97,6 +103,11 @@ void HeaterVessel::delete_device()
// Delete device's allocated object
DELETE_SCALAR_ATTRIBUTE(attr_pressure_read);
DELETE_SCALAR_ATTRIBUTE(attr_automatic_read);
if (hv)
{
delete hv;
hv = 0;
}
}
......
......@@ -120,6 +120,11 @@ namespace CryoCooler_ns
delete DB_end;
DB_end = 0;
}
if (DB_write)
{
delete DB_write;
DB_write = 0;
}
}
break;
//- TASK_PERIODIC ===================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment