[gnome-control-center] user-accounts: Fix small memory leak
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: Fix small memory leak
- Date: Tue, 10 Dec 2019 09:59:40 +0000 (UTC)
commit bf0a757c7f95319be76fa887e217c85fcb6356c7
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Nov 20 15:08:14 2019 +1300
user-accounts: Fix small memory leak
panels/user-accounts/cc-carousel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/user-accounts/cc-carousel.c b/panels/user-accounts/cc-carousel.c
index 94f2e4979..703dbe215 100644
--- a/panels/user-accounts/cc-carousel.c
+++ b/panels/user-accounts/cc-carousel.c
@@ -301,7 +301,7 @@ cc_carousel_add (GtkContainer *container,
last_box_is_full = ((g_list_length (self->children) - 1) % ITEMS_PER_PAGE == 0);
if (last_box_is_full) {
- gchar *page;
+ g_autofree gchar *page = NULL;
page = g_strdup_printf ("%d", CC_CAROUSEL_ITEM (widget)->page);
self->last_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]