forked from enlightenment/enlightenment
Fix potential segfault when loading/unloading modules.
SVN revision: 49168
This commit is contained in:
parent
8b97b2ee11
commit
b7036e67ae
|
@ -142,7 +142,10 @@ gadman_populate_class(void *data, E_Gadcon *gc, const E_Gadcon_Client_Class *cc)
|
||||||
if (cf_gcc->name && cc->name && !strcmp(cf_gcc->name, cc->name) && (gc->cf->zone == gc->zone->id))
|
if (cf_gcc->name && cc->name && !strcmp(cf_gcc->name, cc->name) && (gc->cf->zone == gc->zone->id))
|
||||||
{
|
{
|
||||||
EINA_LIST_FOREACH(Man->gadgets[layer], ll, gcc)
|
EINA_LIST_FOREACH(Man->gadgets[layer], ll, gcc)
|
||||||
if (gcc->cf->id == cf_gcc->id) break;
|
{
|
||||||
|
if ((gcc->cf) && (gcc->cf->id) && (cf_gcc->id))
|
||||||
|
if (gcc->cf->id == cf_gcc->id) break;
|
||||||
|
}
|
||||||
if (!gcc) gadman_gadget_place(cf_gcc, layer, gc->zone);
|
if (!gcc) gadman_gadget_place(cf_gcc, layer, gc->zone);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue