aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
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
parent2fd52ffbfd5b19d005511b8b417389be9577b3c5 (diff)
downloadgsoc2013-evolution-a202ae67951b6b5279a97cf3514f0d80f4240a7a.tar.gz
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')
-rw-r--r--e-util/ChangeLog5
-rw-r--r--e-util/e-list.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index 31df2abe41..47b9bf138e 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-29 Dan Winship <danw@ximian.com>
+
+ * e-list.c (e_list_destroy): Don't call g_list_foreach with the
+ free func if the free func is NULL.
+
2002-08-28 Jeffrey Stedfast <fejj@ximian.com>
* e-html-utils.c (e_text_to_html_full): Convert file: urls
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)