summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2004-02-02 22:29:09 +0000
committerKjartan Maraas <kmaraas@src.gnome.org>2004-02-02 22:29:09 +0000
commitdea26341810723631ff94ffe76df9805f384219d (patch)
tree6a75485a42bf26f444b3d626afad779958189220
parentfa267ae404dc016cf989312b92f5b3a6047c0cd4 (diff)
downloadgnome-desktop-dea26341810723631ff94ffe76df9805f384219d.tar.gz
Plug some leaks in the about dialog. Closes bug #133163.
2004-02-02 Kjartan Maraas <kmaraas@gnome.org> * gnome-about.c: (get_description_messages), (display_version_info): Plug some leaks in the about dialog. Closes bug #133163.
-rw-r--r--gnome-about/ChangeLog6
-rw-r--r--gnome-about/gnome-about.c5
2 files changed, 11 insertions, 0 deletions
diff --git a/gnome-about/ChangeLog b/gnome-about/ChangeLog
index 5feb3dba..40ac7017 100644
--- a/gnome-about/ChangeLog
+++ b/gnome-about/ChangeLog
@@ -1,3 +1,9 @@
+2004-02-02 Kjartan Maraas <kmaraas@gnome.org>
+
+ * gnome-about.c: (get_description_messages),
+ (display_version_info): Plug some leaks in the about dialog.
+ Closes bug #133163.
+
2004-01-22 Fernando Herrera <fherrera@onirica.com>
* gnome-about.c: (display_introduction_message): Set intro text as
diff --git a/gnome-about/gnome-about.c b/gnome-about/gnome-about.c
index d4acacb5..4cdc0503 100644
--- a/gnome-about/gnome-about.c
+++ b/gnome-about/gnome-about.c
@@ -685,6 +685,7 @@ get_description_messages (xmlNodePtr node)
cur = xmlNodeGetLang (paras);
tmp = strip_newlines (value);
+
if (!started) {
started = TRUE;
if (!cur) {
@@ -725,9 +726,11 @@ get_description_messages (xmlNodePtr node)
}
g_free (tmp);
xmlFree (cur);
+ xmlFree (best);
}
paras = paras->next;
+ xmlFree (value);
}
list = g_slist_prepend (list, best_value);
started = FALSE;
@@ -742,6 +745,7 @@ get_description_messages (xmlNodePtr node)
introduction_messages[i] = NULL;
+ g_free (best_value);
g_slist_free (list);
}
@@ -827,6 +831,7 @@ display_version_info (GnomeCanvasGroup *group)
build_date_string = create_date_string (value);
bits = bits->next;
+ xmlFree (value);
}
xmlFreeDoc (about);