aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-list.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-08-30 03:16:10 +0800
committerDan Winship <danw@src.gnome.org>2002-08-30 03:16:10 +0800
commita202ae67951b6b5279a97cf3514f0d80f4240a7a (patch)
tree6797a482da388a3c680e3b6cba01f29da603e32c /e-util/e-list.c
parent2fd52ffbfd5b19d005511b8b417389be9577b3c5 (diff)
downloadgsoc2013-evolution-a202ae67951b6b5279a97cf3514f0d80f4240a7a.tar
gsoc2013-evolution-a202ae67951b6b5279a97cf3514f0d80f4240a7a.tar.gz
gsoc2013-evolution-a202ae67951b6b5279a97cf3514f0d80f4240a7a.tar.bz2
gsoc2013-evolution-a202ae67951b6b5279a97cf3514f0d80f4240a7a.tar.lz
gsoc2013-evolution-a202ae67951b6b5279a97cf3514f0d80f4240a7a.tar.xz
gsoc2013-evolution-a202ae67951b6b5279a97cf3514f0d80f4240a7a.tar.zst
gsoc2013-evolution-a202ae67951b6b5279a97cf3514f0d80f4240a7a.zip
Don't call g_list_foreach with the free func if the free func is NULL.
* e-list.c (e_list_destroy): Don't call g_list_foreach with the free func if the free func is NULL. svn path=/trunk/; revision=17928
Diffstat (limited to 'e-util/e-list.c')
-rw-r--r--e-util/e-list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/e-util/e-list.c b/e-util/e-list.c
index 64ccea728c..ba5c0f8df0 100644
--- a/e-util/e-list.c
+++ b/e-util/e-list.c
@@ -170,7 +170,8 @@ static void
e_list_destroy (GtkObject *object)
{
EList *list = E_LIST(object);
- g_list_foreach(list->list, (GFunc) list->free, list->closure);
+ if (list->free)
+ g_list_foreach(list->list, (GFunc) list->free, list->closure);
g_list_free(list->list);
if (GTK_OBJECT_CLASS (parent_class)->destroy)