summaryrefslogtreecommitdiff
path: root/imagecache.c
diff options
context:
space:
mode:
Diffstat (limited to 'imagecache.c')
-rw-r--r--imagecache.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/imagecache.c b/imagecache.c
index 9ddbd04..3b897b9 100644
--- a/imagecache.c
+++ b/imagecache.c
@@ -623,11 +623,8 @@ void cImageCache::Clear(void) {
}
logoCache.clear();
- if (tempStaticLogo) {
+ if (tempStaticLogo)
delete tempStaticLogo;
- tempStaticLogo = NULL;
- }
-
if (groupsHead)
delete groupsHead;
if (groupsBottom)
@@ -636,7 +633,6 @@ void cImageCache::Clear(void) {
delete groupsLeft;
if (groupsRight)
delete groupsRight;
-
if (imgLeft)
delete imgLeft;
if (imgLeftActive)
@@ -653,4 +649,18 @@ void cImageCache::Clear(void) {
delete imgBottom;
if (imgBottomActive)
delete imgBottomActive;
+
+ tempStaticLogo = NULL;
+ groupsHead = NULL;
+ groupsBottom = NULL;
+ groupsLeft = NULL;
+ groupsRight = NULL;
+ imgLeft = NULL;
+ imgLeftActive = NULL;
+ imgRight = NULL;
+ imgRightActive = NULL;
+ imgHead = NULL;
+ imgHeadActive = NULL;
+ imgBottom = NULL;
+ imgBottomActive = NULL;
}