aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-10-06 06:02:53 +0800
committerIain Holmes <iain@src.gnome.org>2001-10-06 06:02:53 +0800
commitef960f1216ade67969145104028d78a9124111e9 (patch)
treecf53bec499f3c0ed9907148fa16711605246a77e
parente2aaec85d0e2d4fe32a869725645983274a2931b (diff)
downloadgsoc2013-evolution-ef960f1216ade67969145104028d78a9124111e9.tar
gsoc2013-evolution-ef960f1216ade67969145104028d78a9124111e9.tar.gz
gsoc2013-evolution-ef960f1216ade67969145104028d78a9124111e9.tar.bz2
gsoc2013-evolution-ef960f1216ade67969145104028d78a9124111e9.tar.lz
gsoc2013-evolution-ef960f1216ade67969145104028d78a9124111e9.tar.xz
gsoc2013-evolution-ef960f1216ade67969145104028d78a9124111e9.tar.zst
gsoc2013-evolution-ef960f1216ade67969145104028d78a9124111e9.zip
Fix a race condition
svn path=/trunk/; revision=13473
-rw-r--r--my-evolution/ChangeLog5
-rw-r--r--my-evolution/e-summary-rdf.c9
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 <iain@ximian.com>
+
+ * 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 <iain@ximian.com>
* 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);