diff options
author | rbuj <[email protected]> | 2020-02-27 22:38:43 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-03-13 16:43:30 +0100 |
commit | 242b68ceddb217a42547d578898be841dca2f4a3 (patch) | |
tree | 6e661efc8f713cf00400e7526b4c20c3659c2c81 /src/copy-theme-dialog.c | |
parent | ec8db2297fc1d435d26de2006b429b1e6ffdc8a3 (diff) | |
download | mate-screensaver-242b68ceddb217a42547d578898be841dca2f4a3.tar.bz2 mate-screensaver-242b68ceddb217a42547d578898be841dca2f4a3.tar.xz |
Remove warnings: cast between incompatible function types
Diffstat (limited to 'src/copy-theme-dialog.c')
-rw-r--r-- | src/copy-theme-dialog.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/copy-theme-dialog.c b/src/copy-theme-dialog.c index 816d789..a4aaff5 100644 --- a/src/copy-theme-dialog.c +++ b/src/copy-theme-dialog.c @@ -434,10 +434,8 @@ copy_theme_dialog_finalize (GObject *obj) CopyThemeDialog *dlg = COPY_THEME_DIALOG (obj); g_object_unref (dlg->priv->theme_dir); - g_slist_foreach (dlg->priv->all_files, (GFunc) (g_object_unref), NULL); - g_slist_free (dlg->priv->all_files); - g_slist_foreach (dlg->priv->all_basenames, (GFunc) (g_free), NULL); - g_slist_free (dlg->priv->all_basenames); + g_slist_free_full (dlg->priv->all_files, g_object_unref); + g_slist_free_full (dlg->priv->all_basenames, g_free); g_object_unref (dlg->priv->cancellable); if (parent_class->finalize) |