options_wallpaper: fix CID 1339835: Null pointer dereference

devs/zehortigoza/user-title
Boris Faure 7 years ago
parent 224173f88d
commit bb2d7c4250
  1. 15
      src/bin/options_wallpaper.c

@ -230,15 +230,18 @@ _rec_read_directorys(Eina_List *list, const char *root_path,
item = calloc(1, sizeof(Background_Item));
if (item)
{
notify = calloc(1,
notify = calloc(1,
sizeof(Insert_Gen_Grid_Item_Notify));
item->path = eina_stringshare_add(path);
list = eina_list_append(list, item);
//insert item to gengrid
notify->class = class;
notify->item = item;
//ecore_thread_feedback(th, notify);
_insert_gengrid_item(notify);
if (notify)
{
//insert item to gengrid
notify->class = class;
notify->item = item;
//ecore_thread_feedback(th, notify);
_insert_gengrid_item(notify);
}
}
break;
}

Loading…
Cancel
Save