fix segv.

SVN revision: 44948
This commit is contained in:
Carsten Haitzler 2010-01-07 14:01:35 +00:00
parent 77fda764ed
commit b2e8f4cd5a
1 changed files with 20 additions and 16 deletions

View File

@ -151,6 +151,7 @@ _e_mod_comp_update_rects_get(Update *up)
int x, y;
unsigned char *t, *t2, *t3;
if (!up->tiles) return NULL;
r = calloc((up->tw * up->th) + 1, sizeof(Update_Rect));
if (!r) return NULL;
t = up->tiles;
@ -250,6 +251,8 @@ _e_mod_comp_cb_animator(void *data)
cw->update = 0;
r = _e_mod_comp_update_rects_get(cw->up);
if (r)
{
_e_mod_comp_update_clear(cw->up);
if (cw->xim)
{
@ -269,6 +272,7 @@ _e_mod_comp_cb_animator(void *data)
evas_object_image_data_update_add(cw->obj, x, y, w, h);
}
}
}
free(r);
}
ecore_evas_manual_render(c->ee);