Dodal sem destruktor ~CSession(), ki počisti seznama m_olRollback in m_olCommit, sicer pride do nesproščenega pomnilnika.
Verzijo sem nastavil na 1.1.2.
This commit is contained in:
parent
409098e516
commit
1b1a68ef7d
@ -5,13 +5,13 @@
|
|||||||
// Version
|
// Version
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#define AMSICA_VERSION 0x01010100
|
#define AMSICA_VERSION 0x01010200
|
||||||
|
|
||||||
#define AMSICA_VERSION_MAJ 1
|
#define AMSICA_VERSION_MAJ 1
|
||||||
#define AMSICA_VERSION_MIN 1
|
#define AMSICA_VERSION_MIN 1
|
||||||
#define AMSICA_VERSION_REV 1
|
#define AMSICA_VERSION_REV 2
|
||||||
|
|
||||||
#define AMSICA_VERSION_STR "1.1.1"
|
#define AMSICA_VERSION_STR "1.1.2"
|
||||||
|
|
||||||
|
|
||||||
#if !defined(RC_INVOKED) && !defined(MIDL_PASS)
|
#if !defined(RC_INVOKED) && !defined(MIDL_PASS)
|
||||||
@ -460,6 +460,7 @@ class CSession
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CSession();
|
CSession();
|
||||||
|
virtual ~CSession();
|
||||||
|
|
||||||
MSIHANDLE m_hInstall; // Installer handle
|
MSIHANDLE m_hInstall; // Installer handle
|
||||||
BOOL m_bContinueOnError; // Continue execution on operation error?
|
BOOL m_bContinueOnError; // Continue execution on operation error?
|
||||||
|
@ -175,4 +175,10 @@ CSession::CSession() :
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
CSession::~CSession()
|
||||||
|
{
|
||||||
|
m_olRollback.Free();
|
||||||
|
m_olCommit.Free();
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace AMSICA
|
} // namespace AMSICA
|
||||||
|
Loading…
x
Reference in New Issue
Block a user