elm_config: Avoid access of deleted item data.
authorStefan Schmidt <s.schmidt@samsung.com>
Mon, 9 Feb 2015 11:36:01 +0000 (12:36 +0100)
committerStefan Schmidt <s.schmidt@samsung.com>
Mon, 9 Feb 2015 11:36:01 +0000 (12:36 +0100)
This belongs to the fixes raster just did here. It was the only one I was able
to trigger after his fixes.

Last one in a row that fixes T2072.

src/bin/config.c

index 8c94009..85f1743 100644 (file)
@@ -2025,6 +2025,7 @@ _font_classes_list_sel(void *data   EINA_UNUSED,
         const char *s;
 
         s = elm_object_item_text_get(list_it);
+        if (!s) continue;
 
         if (tc_data->font && !strcmp(s, tc_data->font))
           {