Add missing check for calloc failure, thanks Vincent :)

SVN revision: 42019
This commit is contained in:
Christopher Michael 2009-08-26 16:22:52 +00:00
parent b686b3207a
commit 65644d237e
1 changed files with 1 additions and 0 deletions

View File

@ -269,6 +269,7 @@ elm_toolbar_item_add(Evas_Object *obj, Evas_Object *icon, const char *label, voi
if (!wd) return NULL;
it = calloc(1, sizeof(Elm_Toolbar_Item));
if (!it) return NULL;
wd->items = eina_list_append(wd->items, it);
it->obj = obj;
it->label = eina_stringshare_add(label);