diff options
-rw-r--r-- | e-util/ChangeLog | 5 | ||||
-rw-r--r-- | e-util/e-list.c | 3 |
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) |