aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary.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.c
parentb5297de4c44a76856bd3e0385bd8ba36a40c18d1 (diff)
downloadgsoc2013-evolution-fb1c9fcb9b5b400ba0b94e942e8033b66d6c3162.tar.gz
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.c')
-rw-r--r--my-evolution/e-summary.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/my-evolution/e-summary.c b/my-evolution/e-summary.c
index 8d816617b9..0df4dc3bc1 100644
--- a/my-evolution/e-summary.c
+++ b/my-evolution/e-summary.c
@@ -86,6 +86,13 @@ typedef struct _ProtocolListener {
static void
+free_protocol (gpointer key, gpointer value, gpointer user_data)
+{
+ g_free (key);
+ g_free (value);
+}
+
+static void
destroy (GtkObject *object)
{
ESummary *summary;
@@ -117,6 +124,11 @@ destroy (GtkObject *object)
alarm_remove (priv->alarm);
alarm_done ();
+ if (priv->protocol_hash) {
+ g_hash_table_foreach (priv->protocol_hash, free_protocol, NULL);
+ g_hash_table_destroy (priv->protocol_hash);
+ }
+
g_free (priv);
summary->priv = NULL;
@@ -155,11 +167,13 @@ e_summary_draw (ESummary *summary)
html = e_summary_weather_get_html (summary);
if (html != NULL) {
g_string_append (string, html);
+ g_free (html);
}
html = e_summary_rdf_get_html (summary);
if (html != NULL) {
g_string_append (string, html);
+ g_free (html);
}
g_string_append (string, HTML_4);