summaryrefslogtreecommitdiff
path: root/pluma/pluma-commands-file.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-28 09:07:37 +0100
committerraveit65 <[email protected]>2020-03-14 13:14:35 +0100
commit28a6895df5fa4a1a60c794ed5e85e31d764e85e7 (patch)
treef9b5d3eae40ecb5bd8eb357c10ce8458b2faa7f9 /pluma/pluma-commands-file.c
parentd265d00b72fc9a7fb126079780303df9ea217a29 (diff)
downloadpluma-28a6895df5fa4a1a60c794ed5e85e31d764e85e7.tar.bz2
pluma-28a6895df5fa4a1a60c794ed5e85e31d764e85e7.tar.xz
Remove warnings: cast between incompatible function types
Diffstat (limited to 'pluma/pluma-commands-file.c')
-rw-r--r--pluma/pluma-commands-file.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pluma/pluma-commands-file.c b/pluma/pluma-commands-file.c
index 689398a6..2d7e9f31 100644
--- a/pluma/pluma-commands-file.c
+++ b/pluma/pluma-commands-file.c
@@ -296,8 +296,7 @@ load_uri_list (PlumaWindow *window,
ret = load_file_list (window, files, encoding, line_pos, create);
- g_slist_foreach (files, (GFunc) g_object_unref, NULL);
- g_slist_free (files);
+ g_slist_free_full (files, g_object_unref);
return ret;
}
@@ -433,8 +432,7 @@ open_dialog_response_cb (PlumaFileChooserDialog *dialog,
encoding,
0);
- g_slist_foreach (files, (GFunc) g_object_unref, NULL);
- g_slist_free (files);
+ g_slist_free_full (files, g_object_unref);
}
void