image.c: Remove redundant pixmap unref

Already done in __imlib_ConsumeImage().
This commit is contained in:
Kim Woelders 2020-01-03 14:35:40 +01:00
parent 495527a74e
commit 9f479126f9
1 changed files with 1 additions and 12 deletions

View File

@ -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;