From ef960f1216ade67969145104028d78a9124111e9 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Fri, 5 Oct 2001 22:02:53 +0000 Subject: Fix a race condition svn path=/trunk/; revision=13473 --- my-evolution/ChangeLog | 5 +++++ my-evolution/e-summary-rdf.c | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog index c8b64d68b3..1977220e0b 100644 --- a/my-evolution/ChangeLog +++ b/my-evolution/ChangeLog @@ -1,3 +1,8 @@ +2001-10-05 Iain Holmes + + * e-summary-rdf.c (e_summary_rdf_reconfigure): Set the RDF list to + NULL before destroying it to fix a race condition. + 2001-10-04 Iain Holmes * my-evolution.glade: Capitalise stuff diff --git a/my-evolution/e-summary-rdf.c b/my-evolution/e-summary-rdf.c index fa12df5996..fb2c1ccfae 100644 --- a/my-evolution/e-summary-rdf.c +++ b/my-evolution/e-summary-rdf.c @@ -640,14 +640,15 @@ e_summary_rdf_reconfigure (ESummary *summary) /* Stop timeout */ gtk_timeout_remove (rdf->timeout); - for (old = rdf->rdfs; old; old = old->next) { + old = rdf->rdfs; + rdf->rdfs = NULL; + for (p = old; p; p = p->next) { RDF *r; - r = old->data; + r = p->data; rdf_free (r); } - g_list_free (rdf->rdfs); - rdf->rdfs = NULL; + g_list_free (old); for (p = summary->preferences->rdf_urls; p; p = p->next) { e_summary_rdf_add_uri (summary, p->data); -- cgit v1.2.3