From cea06b6e15349e5d55aebc7c4e653d274de6478a Mon Sep 17 00:00:00 2001 From: Nicolas Crittin Date: Sun, 13 Mar 2022 11:51:57 +0100 Subject: [PATCH] Fix issue #144 --- ToolsXmlValidate.cpp | 3 ++- XMLTools.h | 2 +- XMLTools.rc | 10 +++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ToolsXmlValidate.cpp b/ToolsXmlValidate.cpp index 1101d9e..e54929d 100644 --- a/ToolsXmlValidate.cpp +++ b/ToolsXmlValidate.cpp @@ -108,7 +108,6 @@ void XMLValidation(int informIfNoError) { ::SendMessage(hCurrentEditView, SCI_GETTEXT, currentLength + sizeof(char), reinterpret_cast(data)); XmlWrapperInterface* wrapper = new MSXMLWrapper(data, currentLength); - delete[] data; data = NULL; bool isok = wrapper->checkSyntax(); @@ -180,6 +179,8 @@ void XMLValidation(int informIfNoError) { Report::_printf_inf(L"Please fix xml syntax first."); } + delete[] data; data = NULL; + delete wrapper; } diff --git a/XMLTools.h b/XMLTools.h index d86e453..8511735 100644 --- a/XMLTools.h +++ b/XMLTools.h @@ -21,7 +21,7 @@ //--------------------------------------------------------------------------- -#define XMLTOOLS_VERSION_NUMBER L"3.1.1.12" +#define XMLTOOLS_VERSION_NUMBER L"3.1.1.13" #define XMLTOOLS_HOMEPAGE_URL L"https://github.com/morbac/xmltools" #ifdef V64BIT #define XMLTOOLS_VERSION_STATUS L"unicode 64bit" diff --git a/XMLTools.rc b/XMLTools.rc index f635d6c..8ff8270 100644 --- a/XMLTools.rc +++ b/XMLTools.rc @@ -25,8 +25,8 @@ LANGUAGE LANG_FRENCH, SUBLANG_FRENCH // VS_VERSION_INFO VERSIONINFO - FILEVERSION 3,1,1,12 - PRODUCTVERSION 3,1,1,12 + FILEVERSION 3,1,1,13 + PRODUCTVERSION 3,1,1,13 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -42,12 +42,12 @@ BEGIN BLOCK "040004b0" BEGIN VALUE "FileDescription", "XMLTools" - VALUE "FileVersion", "3.1.1.12" + VALUE "FileVersion", "3.1.1.13" VALUE "InternalName", "XMLTools" - VALUE "LegalCopyright", "Copyright (C) 2005-2021" + VALUE "LegalCopyright", "Copyright (C) 2005-2022" VALUE "OriginalFilename", "XMLTools.dll" VALUE "ProductName", "XMLTools" - VALUE "ProductVersion", "3.1.1.12" + VALUE "ProductVersion", "3.1.1.13" END END BLOCK "VarFileInfo"