From 1b1a68ef7dcf7f466ceb0ff3f502c7dea1391a14 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 26 Aug 2013 12:42:31 +0000 Subject: [PATCH] =?UTF-8?q?Dodal=20sem=20destruktor=20~CSession(),=20ki=20?= =?UTF-8?q?po=C4=8Disti=20seznama=20m=5FolRollback=20in=20m=5FolCommit,=20?= =?UTF-8?q?sicer=20pride=20do=20nespro=C5=A1=C4=8Denega=20pomnilnika.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Verzijo sem nastavil na 1.1.2. --- AMSICA/include/AMSICA.h | 7 ++++--- AMSICA/src/AMSICA.cpp | 6 ++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/AMSICA/include/AMSICA.h b/AMSICA/include/AMSICA.h index 738abdc..66f46a6 100644 --- a/AMSICA/include/AMSICA.h +++ b/AMSICA/include/AMSICA.h @@ -5,13 +5,13 @@ // Version //////////////////////////////////////////////////////////////////////////// -#define AMSICA_VERSION 0x01010100 +#define AMSICA_VERSION 0x01010200 #define AMSICA_VERSION_MAJ 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) @@ -460,6 +460,7 @@ class CSession { public: CSession(); + virtual ~CSession(); MSIHANDLE m_hInstall; // Installer handle BOOL m_bContinueOnError; // Continue execution on operation error? diff --git a/AMSICA/src/AMSICA.cpp b/AMSICA/src/AMSICA.cpp index d009634..d10f079 100644 --- a/AMSICA/src/AMSICA.cpp +++ b/AMSICA/src/AMSICA.cpp @@ -175,4 +175,10 @@ CSession::CSession() : } +CSession::~CSession() +{ + m_olRollback.Free(); + m_olCommit.Free(); +} + } // namespace AMSICA