forked from enlightenment/efl
Check there are callbacks before trying to copy them.
Patch by Otávio Pontes SVN revision: 52323
This commit is contained in:
parent
fdc15d4495
commit
20ea0eef4e
|
@ -328,7 +328,7 @@ _evas_smart_class_callbacks_create(Evas_Smart *s)
|
|||
for (n = 0, sc = s->smart_class; sc; sc = sc->parent)
|
||||
{
|
||||
const Evas_Smart_Cb_Description *d;
|
||||
for (d = sc->callbacks; d->name; d++)
|
||||
for (d = sc->callbacks; d && d->name; d++)
|
||||
s->callbacks.array[n++] = d;
|
||||
}
|
||||
evas_smart_cb_descriptions_fix(&s->callbacks);
|
||||
|
|
Loading…
Reference in New Issue