From 7c51d49c61dc9ab0ab06592d2e918632a4a3117a Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 23 Dec 2019 13:34:27 +0000 Subject: [PATCH] * Merging revisions r43363 from trunk: ------------------------------------------------------------------------ r43363 | michael | 2019-11-02 15:35:18 +0100 (Sat, 02 Nov 2019) | 1 line * Fix bug ID #36248 ------------------------------------------------------------------------ git-svn-id: branches/fixes_3_2@43738 - --- packages/libxml/src/xml2.pas | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/libxml/src/xml2.pas b/packages/libxml/src/xml2.pas index dd021e9cff..7ef2265cfa 100644 --- a/packages/libxml/src/xml2.pas +++ b/packages/libxml/src/xml2.pas @@ -355,6 +355,11 @@ initialization LoadExternalVariables; {$ENDIF} +(* + * overloading the memory functions + *) + xmlMemSetup(@fpcxmlFree, @fpcxmlMalloc, @fpcxmlRealloc, @fpcxmlStrdup); + (* * this initialize the library and check potential ABI mismatches * between the version it was compiled for and the actual shared @@ -362,11 +367,6 @@ initialization *) LIBXML_TEST_VERSION; -(* - * overloading the memory functions - *) - xmlMemSetup(@fpcxmlFree, @fpcxmlMalloc, @fpcxmlRealloc, @fpcxmlStrdup); - (* * overloading the error functions *) @@ -377,11 +377,11 @@ finalization (* * Cleanup function for the XML library. *) - //xmlCleanupParser(); + xmlCleanupParser(); (* * this is to debug memory for regression tests *) - xmlMemoryDump(); + //xmlMemoryDump(); end.