X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgl_avltree_oset.c;h=6ac058d8ac5e7585f82bece5d496764fd77db6b6;hb=78f5fbf491b6f12a67a633f919ec24f97570a733;hp=1e38b984f3fa855136deecd94a7ae415a4b4b621;hpb=7c6d5072278ec9af612e21f0507a009ed37816e1;p=gnulib.git diff --git a/lib/gl_avltree_oset.c b/lib/gl_avltree_oset.c index 1e38b984f..6ac058d8a 100644 --- a/lib/gl_avltree_oset.c +++ b/lib/gl_avltree_oset.c @@ -1,11 +1,11 @@ /* Ordered set data type implemented by 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 + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program. If not, see . */ #include @@ -519,6 +518,8 @@ gl_tree_remove_node (gl_oset_t set, gl_oset_node_t node) } set->count--; + if (set->base.dispose_fn != NULL) + set->base.dispose_fn (node->value); free (node); return true; }