summaryrefslogtreecommitdiff
path: root/src/mate-screensaver-preferences.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2022-01-30 17:59:08 +0100
committerraveit65 <[email protected]>2022-03-07 19:43:21 +0100
commite1cc6f63f409abe17d0f6803b0697a87ed57985e (patch)
treed8bde0ff427271db41a912d7af7ad4c38c4974e4 /src/mate-screensaver-preferences.c
parentdc4857ad422547e89d88715c4ca2730e3225a5d7 (diff)
downloadmate-screensaver-e1cc6f63f409abe17d0f6803b0697a87ed57985e.tar.bz2
mate-screensaver-e1cc6f63f409abe17d0f6803b0697a87ed57985e.tar.xz
mate-screensaver-preferences: fix memory leak
Diffstat (limited to 'src/mate-screensaver-preferences.c')
-rw-r--r--src/mate-screensaver-preferences.c9
1 files 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