forked from enlightenment/efl
and that woudl fix a segv problem.. wheee..
SVN revision: 4667
This commit is contained in:
parent
3e9ca9ebfa
commit
9413312693
|
@ -44,7 +44,11 @@ __evas_imlib_image_cache_clean(void)
|
||||||
|
|
||||||
for (l = images; l; l = l->next)
|
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);
|
images = evas_list_remove(images, last);
|
||||||
imlib_context_set_image(last->image);
|
imlib_context_set_image(last->image);
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
#include "Evas_private.h"
|
#include "Evas_private.h"
|
||||||
#include "Evas.h"
|
#include "Evas.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
Loading…
Reference in New Issue