From 33958b748d957626c37da2322292ec1cd893d8e4 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 17 Mar 2013 12:14:19 +0000 Subject: crash fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@4073 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/IEView/src/Template.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/IEView/src') diff --git a/plugins/IEView/src/Template.cpp b/plugins/IEView/src/Template.cpp index 10946b7acc..1b234265dc 100644 --- a/plugins/IEView/src/Template.cpp +++ b/plugins/IEView/src/Template.cpp @@ -48,7 +48,7 @@ Token::Token(int type, const char *text, int escape) { Token::~Token() { if (text!=NULL) { - delete text; + mir_free(text); } } @@ -81,8 +81,8 @@ Template::Template(const char *name, const char *text) { } Template::~Template() { - if (text != NULL) delete text; - if (name != NULL) delete name; + if (text != NULL) mir_free(text); + if (name != NULL) mir_free(name); Token *ptr = tokens, *ptr2; tokens = NULL; for (;ptr!=NULL;ptr = ptr2) { @@ -229,7 +229,7 @@ TemplateMap::TemplateMap(const char *name) { TemplateMap::~TemplateMap() { if (name != NULL) { - delete name; + mir_free(name); } if (filename != NULL) { delete filename; -- cgit v1.2.3