[gnome-control-center] user-accounts: Fix assertion from freeing NULL array
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: Fix assertion from freeing NULL array
- Date: Wed, 17 Apr 2013 08:02:57 +0000 (UTC)
commit 264c2fc693357d55c6412271603039a1eee8be3f
Author: Stef Walter <stefw redhat com>
Date: Wed Apr 17 09:42:57 2013 +0200
user-accounts: Fix assertion from freeing NULL array
https://bugzilla.gnome.org/show_bug.cgi?id=698177
panels/user-accounts/um-history-dialog.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/panels/user-accounts/um-history-dialog.c b/panels/user-accounts/um-history-dialog.c
index 3593df6..10c6e91 100644
--- a/panels/user-accounts/um-history-dialog.c
+++ b/panels/user-accounts/um-history-dialog.c
@@ -167,13 +167,12 @@ set_sensitivity (UmHistoryDialog *um)
if (login_history != NULL) {
history = g_array_index (login_history, UmLoginHistory, 0);
sensitive = g_date_time_to_unix (um->week) > history.login_time;
+ g_array_free (login_history, TRUE);
}
gtk_widget_set_sensitive (get_widget (um, "previous-button"), sensitive);
sensitive = (g_date_time_compare (um->current_week, um->week) == 1);
gtk_widget_set_sensitive (get_widget (um, "next-button"), sensitive);
-
- g_array_free (login_history, TRUE);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]