diff --git a/src/modules/comp/e_mod_comp_update.c b/src/modules/comp/e_mod_comp_update.c index 588200b0e..9d754e12d 100644 --- a/src/modules/comp/e_mod_comp_update.c +++ b/src/modules/comp/e_mod_comp_update.c @@ -51,10 +51,10 @@ e_mod_comp_update_tile_size_set(E_Update *up, int tsw, int tsh) void e_mod_comp_update_resize(E_Update *up, int w, int h) { - unsigned char *ptiles = up->tiles, *p, *pp; + unsigned char *ptiles, *p, *pp; int ptw, pth, x, y; - if ((up->w == w) && (up->h == h)) return; + if ((!up) || ((up->w == w) && (up->h == h))) return; ptw = up->tw; pth = up->th;