and that woudl fix a segv problem.. wheee..

SVN revision: 4667
This commit is contained in:
Carsten Haitzler 2001-04-21 18:55:56 +00:00
parent 3e9ca9ebfa
commit 9413312693
2 changed files with 6 additions and 1 deletions

View File

@ -44,7 +44,11 @@ __evas_imlib_image_cache_clean(void)
for (l = images; l; l = l->next)
{
if (!l->next) last = l->data;
Evas_Imlib_Image *im;
im = l->data;
if (im->references == 0)
last = l->data;
}
images = evas_list_remove(images, last);
imlib_context_set_image(last->image);

View File

@ -1,3 +1,4 @@
#include "Evas_private.h"
#include "Evas.h"
#include <stdio.h>