forked from enlightenment/enlightenment
fix enlightenment crash by accessing null pointer.
Summary: e_client_below_get can return null, so added null check code. Reviewers: raster, zmike CC: cedric Differential Revision: https://phab.enlightenment.org/D857
This commit is contained in:
parent
60d78371db
commit
3c416438b0
|
@ -200,8 +200,12 @@ _e_comp_object_layers_add(E_Comp_Object *cw, E_Comp_Object *above, E_Comp_Object
|
|||
#ifndef E19_RELEASE_BUILD
|
||||
if (layer_cw)
|
||||
{
|
||||
if (cw->comp->layers[cw->layer].obj == e_client_below_get(cw->ec)->frame)
|
||||
CRI("ACK!");
|
||||
E_Client *below_ec = e_client_below_get(cw->ec);
|
||||
if (below_ec)
|
||||
{
|
||||
if (cw->comp->layers[cw->layer].obj == below_ec->frame)
|
||||
CRI("ACK!");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue