gdm r6545 - in trunk: . gui/simple-greeter
- From: mccann svn gnome org
- To: svn-commits-list gnome org
- Subject: gdm r6545 - in trunk: . gui/simple-greeter
- Date: Tue, 23 Sep 2008 15:33:27 +0000 (UTC)
Author: mccann
Date: Tue Sep 23 15:33:26 2008
New Revision: 6545
URL: http://svn.gnome.org/viewvc/gdm?rev=6545&view=rev
Log:
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>
Modified:
trunk/ChangeLog
trunk/gui/simple-greeter/gdm-user-manager.c
trunk/gui/simple-greeter/gdm-user.c
Modified: trunk/gui/simple-greeter/gdm-user-manager.c
==============================================================================
--- trunk/gui/simple-greeter/gdm-user-manager.c (original)
+++ trunk/gui/simple-greeter/gdm-user-manager.c Tue Sep 23 15:33:26 2008
@@ -667,6 +667,7 @@
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 @@
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
Modified: trunk/gui/simple-greeter/gdm-user.c
==============================================================================
--- trunk/gui/simple-greeter/gdm-user.c (original)
+++ trunk/gui/simple-greeter/gdm-user.c Tue Sep 23 15:33:26 2008
@@ -1093,6 +1093,7 @@
cairo_to_pixbuf (data, dest);
cairo_destroy (cr);
+ g_free (data);
return dest;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]