diff options
-rw-r--r-- | plugins/IEView/src/TemplateHTMLBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/IEView/src/TemplateHTMLBuilder.cpp b/plugins/IEView/src/TemplateHTMLBuilder.cpp index 522a104221..09d2de312f 100644 --- a/plugins/IEView/src/TemplateHTMLBuilder.cpp +++ b/plugins/IEView/src/TemplateHTMLBuilder.cpp @@ -37,7 +37,7 @@ TemplateHTMLBuilder::TemplateHTMLBuilder() { TemplateHTMLBuilder::~TemplateHTMLBuilder() {
for (int i = 0; i < 2; i++) {
if (flashAvatars[i] != NULL) {
- delete flashAvatars[i];
+ mir_free(flashAvatars[i]);
}
}
}
@@ -90,7 +90,7 @@ char *TemplateHTMLBuilder::getAvatar(HANDLE hContact, const char * szProto) { const char *TemplateHTMLBuilder::getFlashAvatar(const TCHAR *file, int index) {
if (time(NULL) - flashAvatarsTime[index] > 600 || flashAvatars[index] == NULL) {
if (flashAvatars[index] != NULL) {
- delete flashAvatars[index];
+ mir_free(flashAvatars[index]);
flashAvatars[index] = NULL;
}
flashAvatarsTime[index] = time(NULL);
|