forked from old/legacy-imlib2
image.c: Remove redundant pixmap unref
Already done in __imlib_ConsumeImage().
This commit is contained in:
parent
495527a74e
commit
9f479126f9
|
@ -203,18 +203,6 @@ __imlib_CurrentCacheSize(void)
|
||||||
im = im->next;
|
im = im->next;
|
||||||
__imlib_RemoveImageFromCache(tmp_im);
|
__imlib_RemoveImageFromCache(tmp_im);
|
||||||
__imlib_ConsumeImage(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;
|
continue;
|
||||||
}
|
}
|
||||||
/* it's valid but has 0 ref's - append to cache size count */
|
/* it's valid but has 0 ref's - append to cache size count */
|
||||||
|
@ -223,6 +211,7 @@ __imlib_CurrentCacheSize(void)
|
||||||
}
|
}
|
||||||
im = im->next;
|
im = im->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef BUILD_X11
|
#ifdef BUILD_X11
|
||||||
/* go through the pixmaps */
|
/* go through the pixmaps */
|
||||||
ip = pixmaps;
|
ip = pixmaps;
|
||||||
|
|
Loading…
Reference in New Issue