summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorBrian Cameron <brian.cameron@sun.com>2006-09-27 21:51:18 +0000
committerBrian Cameron <bcameron@src.gnome.org>2006-09-27 21:51:18 +0000
commit38e2770fbfb873bf23e0fba30fcea188f478c443 (patch)
tree450773cdec7572cec369811701b2e743729fe53f /gui
parent12fb7589588cefc0ea53cffffb09595bfb4b7aea (diff)
downloadgdm-38e2770fbfb873bf23e0fba30fcea188f478c443.tar.gz
Fix more memory leaks. Fixes bug #357879. Patch provided by Kjartan
2006-09-27 Brian Cameron <brian.cameron@sun.com> * gui/gdmconfig.c, gui/greeter/greeter_parser.c: Fix more memory leaks. Fixes bug #357879. Patch provided by Kjartan Maraas. <kmaraas@gnome.org>.
Diffstat (limited to 'gui')
-rw-r--r--gui/gdmconfig.c5
-rw-r--r--gui/greeter/greeter_parser.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gui/gdmconfig.c b/gui/gdmconfig.c
index 7a0d4914..df3cb643 100644
--- a/gui/gdmconfig.c
+++ b/gui/gdmconfig.c
@@ -248,6 +248,7 @@ gdm_config_get_xservers (gboolean flexible)
svr->flexible = TRUE;
else
svr->flexible = FALSE;
+ g_free (temp);
temp = gdm_config_get_xserver_details (*sec, "CHOOSABLE");
if (temp == NULL) {
@@ -257,6 +258,7 @@ gdm_config_get_xservers (gboolean flexible)
svr->choosable = TRUE;
else
svr->choosable = FALSE;
+ g_free (temp);
temp = gdm_config_get_xserver_details (*sec, "HANDLED");
if (temp == NULL) {
@@ -266,6 +268,7 @@ gdm_config_get_xservers (gboolean flexible)
svr->handled = TRUE;
else
svr->handled = FALSE;
+ g_free (temp);
temp = gdm_config_get_xserver_details (*sec, "CHOOSER");
if (temp == NULL) {
@@ -275,6 +278,7 @@ gdm_config_get_xservers (gboolean flexible)
svr->chooser = TRUE;
else
svr->chooser = FALSE;
+ g_free (temp);
temp = gdm_config_get_xserver_details (*sec, "PRIORITY");
if (temp == NULL) {
@@ -283,6 +287,7 @@ gdm_config_get_xservers (gboolean flexible)
} else {
svr->priority = atoi (temp);
}
+ g_free (temp);
sec++;
diff --git a/gui/greeter/greeter_parser.c b/gui/greeter/greeter_parser.c
index 27d25703..3c39715a 100644
--- a/gui/greeter/greeter_parser.c
+++ b/gui/greeter/greeter_parser.c
@@ -1581,6 +1581,8 @@ parse_items (xmlNodePtr node,
"Found tag %s when looking for item", child->name);
return FALSE;
}
+
+ xmlFree (type);
type = xmlGetProp (child, (const xmlChar *) "type");
if G_UNLIKELY (!type)