summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2022-01-30 17:59:08 +0100
committerraveit65 <[email protected]>2022-07-02 18:52:09 +0200
commitff4270809d096292a3b532046b6145d7a3b3dfb0 (patch)
tree44a1e7ff96771c8ef04ad5386fedc0ce9ce1fb37
parent8c12ca79d237a36e7d41a644b24c0753cafc968c (diff)
downloadmate-screensaver-ff4270809d096292a3b532046b6145d7a3b3dfb0.tar.bz2
mate-screensaver-ff4270809d096292a3b532046b6145d7a3b3dfb0.tar.xz
mate-screensaver-preferences: fix memory leak
-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 46e780e..286218e 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