Fix klockwork issue: NULL pointer may be dereferenced:

Don't call e_comp_win_effect_set unless we have a valid pager window

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-06-28 14:44:25 +01:00
parent dafe0b94d2
commit 2047bac4b0
1 changed files with 2 additions and 2 deletions

View File

@ -2196,12 +2196,12 @@ _pager_drop_cb_drop(void *data, const char *type, void *event_info)
e_border_hide(bd, 2);
else
{
if (pd->desk != bd->desk)
if ((pd->desk != bd->desk) && (pw))
e_comp_win_effect_set(pw->border->cw, NULL);
}
e_border_desk_set(bd, pd->desk);
e_border_raise(bd);
if ((!max) && (!fullscreen))
{
int zx, zy, zw, zh, mx, my;