aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-weather.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-09-11 06:48:52 +0800
committerDan Winship <danw@src.gnome.org>2001-09-11 06:48:52 +0800
commitfb1c9fcb9b5b400ba0b94e942e8033b66d6c3162 (patch)
tree7291c70eb42ef7480885bc968023478ae2a0685f /my-evolution/e-summary-weather.c
parentb5297de4c44a76856bd3e0385bd8ba36a40c18d1 (diff)
downloadgsoc2013-evolution-fb1c9fcb9b5b400ba0b94e942e8033b66d6c3162.tar
gsoc2013-evolution-fb1c9fcb9b5b400ba0b94e942e8033b66d6c3162.tar.gz
gsoc2013-evolution-fb1c9fcb9b5b400ba0b94e942e8033b66d6c3162.tar.bz2
gsoc2013-evolution-fb1c9fcb9b5b400ba0b94e942e8033b66d6c3162.tar.lz
gsoc2013-evolution-fb1c9fcb9b5b400ba0b94e942e8033b66d6c3162.tar.xz
gsoc2013-evolution-fb1c9fcb9b5b400ba0b94e942e8033b66d6c3162.tar.zst
gsoc2013-evolution-fb1c9fcb9b5b400ba0b94e942e8033b66d6c3162.zip
Purification.
* e-summary.c (destroy): free the protocol hash. * e-summary-rdf.c (tree_walk): plug a leak. * e-summary-weather.c (e_summary_weather_init_locations): Don't insert duplicates into the hash table. * e-summary-mail.c (e_summary_mail_generate_html): free old html before setting new * e-summary.c (e_summary_draw): free weather and rdf html strings. * e-summary-preferences.c (save_known_rdfs): free strings. svn path=/trunk/; revision=12747
Diffstat (limited to 'my-evolution/e-summary-weather.c')
-rw-r--r--my-evolution/e-summary-weather.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/my-evolution/e-summary-weather.c b/my-evolution/e-summary-weather.c
index e1aa113095..6456d2a2ea 100644
--- a/my-evolution/e-summary-weather.c
+++ b/my-evolution/e-summary-weather.c
@@ -445,10 +445,12 @@ e_summary_weather_init_locations (void)
&locdata);
g_return_val_if_fail (nlocdata == 4, FALSE);
- location = weather_location_new (locdata);
- g_hash_table_insert (locations_hash,
- g_strdup (locdata[1]),
- location);
+ if (!g_hash_table_lookup (locations_hash, locdata[1])) {
+ location = weather_location_new (locdata);
+ g_hash_table_insert (locations_hash,
+ g_strdup (locdata[1]),
+ location);
+ }
g_strfreev (locdata);
}