From 7dad3543a2b848f6547b291f812c9643dc0b85f2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 30 Jun 2012 16:17:46 +0000 Subject: Variables moved to mir_* memory allocation routines git-svn-id: http://svn.miranda-ng.org/main/trunk@696 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Variables/parse_xml.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'plugins/Variables/parse_xml.cpp') diff --git a/plugins/Variables/parse_xml.cpp b/plugins/Variables/parse_xml.cpp index ae6ad960d1..4e360035b4 100644 --- a/plugins/Variables/parse_xml.cpp +++ b/plugins/Variables/parse_xml.cpp @@ -2,7 +2,7 @@ Variables Plugin for Miranda-IM (www.miranda-im.org) Copyright 2003-2006 P. Boon - This program is free software; you can redistribute it and/or modify + This program is mir_free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. @@ -64,8 +64,8 @@ static TCHAR *parseXslts(ARGUMENTSINFO *ai) { return NULL; } - szStyleSheet = u2a(ai->targv[1]); - szDoc = u2a(ai->targv[2]); + szStyleSheet = mir_t2a(ai->targv[1]); + szDoc = mir_t2a(ai->targv[2]); log_debugA("calling xsltParseMemory"); @@ -116,12 +116,12 @@ static TCHAR *parseXslts(ARGUMENTSINFO *ai) { pXmlFreeDoc(res); log_debugA("calling xsltFreeDoc"); pXmlFreeDoc(doc); - log_debugA("calling free"); - free(szStyleSheet); - log_debugA("calling free"); - free(szDoc); + log_debugA("calling mir_free"); + mir_free(szStyleSheet); + log_debugA("calling mir_free"); + mir_free(szDoc); - tszRes = a2u((char *)xmlChRes); + tszRes = mir_a2t((char *)xmlChRes); log_debugA("calling xmlFree"); pXmlFree(xmlChRes); @@ -145,8 +145,8 @@ static TCHAR *parseXsltf(ARGUMENTSINFO *ai) { return NULL; } - szStyleSheet = u2a(ai->targv[1]); - szDoc = u2a(ai->targv[2]); + szStyleSheet = mir_t2a(ai->targv[1]); + szDoc = mir_t2a(ai->targv[2]); log_debugA("xslt with %s and %s", szStyleSheet, szDoc); @@ -196,10 +196,10 @@ static TCHAR *parseXsltf(ARGUMENTSINFO *ai) { //log_debug("calling xmlCleanupParser"); //pXmlCleanupParser(); - free(szStyleSheet); - free(szDoc); + mir_free(szStyleSheet); + mir_free(szDoc); - tszRes = a2u((char *)xmlChRes); + tszRes = mir_a2t((char *)xmlChRes); log_debugA("calling xmlFree"); pXmlFree(xmlChRes); -- cgit v1.2.3