diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-17 12:14:19 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-17 12:14:19 +0000 |
commit | 33958b748d957626c37da2322292ec1cd893d8e4 (patch) | |
tree | 1b7e419375b4064a581d366ed6d35538d10d2507 /plugins/IEView | |
parent | fe4e211fe45a0b04190d06dbf34fa13883df871a (diff) |
crash fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@4073 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView')
-rw-r--r-- | plugins/IEView/src/Template.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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;
|