X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgl_anytreehash_list2.h;h=89cdb068cb7dfe526dba5442c6b01ef7add93739;hb=a3a70ebafd7f2fdc069d43e8a26fc246dd7fe5bb;hp=f69f9839965872b0dc9dcaa49e936278dd901441;hpb=935e9f0bda3d20a28516e3e369946fe6fbe60043;p=gnulib.git diff --git a/lib/gl_anytreehash_list2.h b/lib/gl_anytreehash_list2.h index f69f98399..89cdb068c 100644 --- a/lib/gl_anytreehash_list2.h +++ b/lib/gl_anytreehash_list2.h @@ -1,5 +1,5 @@ /* Sequential list data type implemented by a hash table with a binary tree. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software; you can redistribute it and/or modify @@ -198,6 +198,8 @@ gl_tree_list_free (gl_list_t list) if (!stack_ptr->rightp) break; /* Free the current node. */ + if (list->base.dispose_fn != NULL) + list->base.dispose_fn (node->value); free (node); } /* Descend on right branch. */