check returned pixmap size before attempting to create updates tiler

CID 1349419
This commit is contained in:
Mike Blumenkrantz 2016-03-10 11:57:11 -05:00
parent 40ebd1d16e
commit ec9776e5eb
1 changed files with 1 additions and 0 deletions

View File

@ -304,6 +304,7 @@ _e_comp_object_updates_init(E_Comp_Object *cw)
pw = cw->ec->client.w, ph = cw->ec->client.h;
if ((!pw) || (!ph))
e_pixmap_size_get(cw->ec->pixmap, &pw, &ph);
if ((!pw) || (!ph)) return;
cw->updates = eina_tiler_new(pw, ph);
if (cw->updates)
eina_tiler_tile_size_set(cw->updates, 1, 1);