[recipes] Fix another small memory leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Fix another small memory leak
- Date: Sat, 31 Dec 2016 04:47:23 +0000 (UTC)
commit 659b97f76e32e5ce34fb0d6fb922993298a21ad8
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 30 21:31:21 2016 -0500
Fix another small memory leak
src/gr-details-page.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-details-page.c b/src/gr-details-page.c
index 3299581..8bd60e2 100644
--- a/src/gr-details-page.c
+++ b/src/gr-details-page.c
@@ -679,7 +679,6 @@ populate_ingredients (GrDetailsPage *page,
{
g_autoptr(GtkSizeGroup) group = NULL;
g_autofree char **segments = NULL;
- g_auto(GStrv) ings = NULL;
int i, j;
GtkWidget *list;
GtkWidget *label;
@@ -689,6 +688,8 @@ populate_ingredients (GrDetailsPage *page,
group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
segments = gr_ingredients_list_get_segments (page->ingredients);
for (j = 0; segments[j]; j++) {
+ g_auto(GStrv) ings = NULL;
+
if (segments[j] && segments[j][0]) {
label = gtk_label_new (segments[j]);
gtk_widget_show (label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]