From e1cc6f63f409abe17d0f6803b0697a87ed57985e Mon Sep 17 00:00:00 2001 From: rbuj Date: Sun, 30 Jan 2022 17:59:08 +0100 Subject: mate-screensaver-preferences: fix memory leak --- src/mate-screensaver-preferences.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mate-screensaver-preferences.c b/src/mate-screensaver-preferences.c index 7a18a5c..4722b31 100644 --- a/src/mate-screensaver-preferences.c +++ b/src/mate-screensaver-preferences.c @@ -663,19 +663,20 @@ separator_func (GtkTreeModel *model, GtkTreeIter *iter, gpointer data) { - int column = GPOINTER_TO_INT (data); - char *text; + int column = GPOINTER_TO_INT (data); + gboolean res = FALSE; + char *text; gtk_tree_model_get (model, iter, column, &text, -1); if (text != NULL && strcmp (text, "__separator") == 0) { - return TRUE; + res = TRUE; } g_free (text); - return FALSE; + return res; } static void -- cgit v1.2.1