eolian: do not free insides of field_list
authorDaniel Kolesa <d.kolesa@samsung.com>
Sun, 24 Aug 2014 13:22:02 +0000 (14:22 +0100)
committerDaniel Kolesa <d.kolesa@samsung.com>
Sun, 24 Aug 2014 13:22:42 +0000 (14:22 +0100)
After field_list was migrated from stringshare to struct,
I forgot to change this.

src/lib/eolian/database_type.c

index c22e2895d7b4610cacef3bd8242444d9300540f9..efbd5adf83264484ed0f401f5245f30253f05cc0 100644 (file)
@@ -15,8 +15,7 @@ database_type_del(Eolian_Type *tp)
    if (tp->name) eina_stringshare_del(tp->name);
    if (tp->full_name) eina_stringshare_del(tp->full_name);
    if (tp->fields) eina_hash_free(tp->fields);
-   if (tp->field_list) EINA_LIST_FREE(tp->field_list, sp)
-     eina_stringshare_del(sp);
+   if (tp->field_list) eina_list_free(tp->field_list);
    if (tp->namespaces) EINA_LIST_FREE(tp->namespaces, sp)
      eina_stringshare_del(sp);
    if (tp->comment) eina_stringshare_del(tp->comment);