don't call comp object cleanup functions for clients without comp objects

This commit is contained in:
Mike Blumenkrantz 2017-06-30 10:25:23 -04:00
parent b7c36b3b81
commit 56d9df831f
1 changed files with 5 additions and 2 deletions

View File

@ -445,8 +445,11 @@ _e_client_free(E_Client *ec)
ec->pixmap = NULL;
}
e_comp_object_redirected_set(ec->frame, 0);
e_comp_object_render_update_del(ec->frame);
if (ec->frame)
{
e_comp_object_redirected_set(ec->frame, 0);
e_comp_object_render_update_del(ec->frame);
}
E_OBJECT(ec)->references++;
if (ec->fullscreen)