author | ecalot
<ecalot> 2006-01-02 09:00:38 UTC |
committer | ecalot
<ecalot> 2006-01-02 09:00:38 UTC |
parent | 939a65308da3f913ac3d643be629e3f0159c5e05 |
PR/src/lib/layers/list.c | +1 | -1 |
diff --git a/PR/src/lib/layers/list.c b/PR/src/lib/layers/list.c index cdc08c9..526f0df 100644 --- a/PR/src/lib/layers/list.c +++ b/PR/src/lib/layers/list.c @@ -84,7 +84,7 @@ void list_drop(tList *list) { list->cursor=list->first; while (list->cursor) { aux=list->cursor->next; - list->free(list->cursor->data); + if (list->free) list->free(list->cursor->data); free(list->cursor->data); free(list->cursor); list->cursor=aux;