38 behavior->destroy_func(behavior); |
38 behavior->destroy_func(behavior); |
39 } |
39 } |
40 } |
40 } |
41 |
41 |
42 static CxList *asc_behavior_new_list(void) { |
42 static CxList *asc_behavior_new_list(void) { |
43 // TODO: add comparator when we know how to identifier behaviors in order to remove them |
43 // TODO: add comparator when we know how to identify behaviors in order to remove them |
44 CxList *list = cxArrayListCreate(NULL, NULL, sizeof(AscBehavior), 4); |
44 CxList *list = cxArrayListCreate(NULL, NULL, sizeof(AscBehavior), 4); |
45 cxDefineDestructor(list, asc_behavior_destroy); |
45 cxDefineDestructor(list, asc_behavior_destroy); |
46 return list; |
46 return list; |
47 } |
47 } |
48 |
48 |