summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2020-01-03 14:35:40 +0100
committerKim Woelders <kim@woelders.dk>2020-01-04 15:30:20 +0100
commit9f479126f939f1bd22c90d41407e5c00b8982281 (patch)
tree1c3cf77efb57331a514771c02275195e6b5a9ded
parent495527a74ef6ed9f9f23e683568de4f0cb6c8f3f (diff)
downloadimlib2-9f479126f939f1bd22c90d41407e5c00b8982281.tar.gz
image.c: Remove redundant pixmap unref
Already done in __imlib_ConsumeImage().
-rw-r--r--src/lib/image.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/lib/image.c b/src/lib/image.c
index 2f33d42..2c1a61a 100644
--- a/src/lib/image.c
+++ b/src/lib/image.c
@@ -203,18 +203,6 @@ __imlib_CurrentCacheSize(void)
im = im->next;
__imlib_RemoveImageFromCache(tmp_im);
__imlib_ConsumeImage(tmp_im);
-#ifdef BUILD_X11
- ip = pixmaps;
- while (ip)
- {
- if (ip->image == tmp_im)
- {
- ip->image = NULL;
- ip->dirty = 1;
- }
- ip = ip->next;
- }
-#endif
continue;
}
/* it's valid but has 0 ref's - append to cache size count */
@@ -223,6 +211,7 @@ __imlib_CurrentCacheSize(void)
}
im = im->next;
}
+
#ifdef BUILD_X11
/* go through the pixmaps */
ip = pixmaps;