summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2008-09-23 15:33:26 +0000
committerWilliam Jon McCann <mccann@src.gnome.org>2008-09-23 15:33:26 +0000
commitc90d5683836fa16445310a9741a5a9831d084504 (patch)
tree250567f75d14d0d00f84d8a1e388dca715a74090 /gui
parent4dd8f1884a88414bff72505e244ba94a31a77120 (diff)
downloadgdm-c90d5683836fa16445310a9741a5a9831d084504.tar.gz
Fix a few leaks. Fixes #552578 Patch from: Matthias Clasen
2008-09-23 William Jon McCann <jmccann@redhat.com> * gui/simple-greeter/gdm-user-manager.c (add_sessions_for_user), (process_ck_history_line): * gui/simple-greeter/gdm-user.c (frame_pixbuf): Fix a few leaks. Fixes #552578 Patch from: Matthias Clasen <mclasen@redhat.com> svn path=/trunk/; revision=6545
Diffstat (limited to 'gui')
-rw-r--r--gui/simple-greeter/gdm-user-manager.c3
-rw-r--r--gui/simple-greeter/gdm-user.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/gui/simple-greeter/gdm-user-manager.c b/gui/simple-greeter/gdm-user-manager.c
index 12e79185..e9135da1 100644
--- a/gui/simple-greeter/gdm-user-manager.c
+++ b/gui/simple-greeter/gdm-user-manager.c
@@ -667,6 +667,7 @@ add_sessions_for_user (GdmUserManager *manager,
maybe_add_session_for_user (manager, user, ssid);
}
+ g_ptr_array_foreach (sessions, (GFunc)g_free, NULL);
g_ptr_array_free (sessions, TRUE);
out:
@@ -1147,11 +1148,13 @@ process_ck_history_line (GdmUserManager *manager,
user = gdm_user_manager_get_user (manager, username);
if (user == NULL) {
g_debug ("GdmUserManager: unable to lookup user '%s'", username);
+ g_free (username);
return;
}
g_object_set (user, "login-frequency", frequency, NULL);
g_signal_emit (manager, signals [USER_LOGIN_FREQUENCY_CHANGED], 0, user);
+ g_free (username);
}
static gboolean
diff --git a/gui/simple-greeter/gdm-user.c b/gui/simple-greeter/gdm-user.c
index 502fa686..e571a81d 100644
--- a/gui/simple-greeter/gdm-user.c
+++ b/gui/simple-greeter/gdm-user.c
@@ -1093,6 +1093,7 @@ frame_pixbuf (GdkPixbuf *source)
cairo_to_pixbuf (data, dest);
cairo_destroy (cr);
+ g_free (data);
return dest;
}