Skip to content

Commit

Permalink
Fix issue #144
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Crittin committed Mar 13, 2022
1 parent f8bb657 commit cea06b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion ToolsXmlValidate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ void XMLValidation(int informIfNoError) {
::SendMessage(hCurrentEditView, SCI_GETTEXT, currentLength + sizeof(char), reinterpret_cast<LPARAM>(data));

XmlWrapperInterface* wrapper = new MSXMLWrapper(data, currentLength);
delete[] data; data = NULL;

bool isok = wrapper->checkSyntax();

Expand Down Expand Up @@ -180,6 +179,8 @@ void XMLValidation(int informIfNoError) {
Report::_printf_inf(L"Please fix xml syntax first.");
}

delete[] data; data = NULL;

delete wrapper;
}

Expand Down
2 changes: 1 addition & 1 deletion XMLTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions XMLTools.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit cea06b6

Please sign in to comment.