fix dereference of incomplete pointer type

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-08-25 09:51:49 -04:00
parent b10c0d91ab
commit 4bc11ee5d5
1 changed files with 1 additions and 2 deletions

View File

@ -384,8 +384,7 @@ e_pixmap_refresh(E_Pixmap *cp)
e_comp_object_native_surface_set(cp->client->frame, 0);
success = !!pixmap;
if (!success) break;
if (cp->client->comp_data &&
cp->client->comp_data->pw && cp->client->comp_data->ph)
if (cd && cd->pw && cd->ph)
{
pw = cd->pw;
ph = cd->ph;