diff options
author | rbuj <[email protected]> | 2022-01-30 17:59:08 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-03-07 19:43:21 +0100 |
commit | e1cc6f63f409abe17d0f6803b0697a87ed57985e (patch) | |
tree | d8bde0ff427271db41a912d7af7ad4c38c4974e4 /src | |
parent | dc4857ad422547e89d88715c4ca2730e3225a5d7 (diff) | |
download | mate-screensaver-e1cc6f63f409abe17d0f6803b0697a87ed57985e.tar.bz2 mate-screensaver-e1cc6f63f409abe17d0f6803b0697a87ed57985e.tar.xz |
mate-screensaver-preferences: fix memory leak
Diffstat (limited to 'src')
-rw-r--r-- | src/mate-screensaver-preferences.c | 9 |
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 |