summaryrefslogtreecommitdiff
path: root/src/eom-jobs.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-27 20:49:54 +0100
committerraveit65 <[email protected]>2020-03-10 20:29:47 +0100
commitd34df9832f460c2bca79257aae4b5cfc77c959a1 (patch)
tree74e7a06c4b018f9045ebd97d7252fa71f87066ab /src/eom-jobs.c
parent0c8d17a76050af39b22f26b33f7b47de949ef379 (diff)
downloadeom-d34df9832f460c2bca79257aae4b5cfc77c959a1.tar.bz2
eom-d34df9832f460c2bca79257aae4b5cfc77c959a1.tar.xz
Remove warnings: cast between incompatible function types
Diffstat (limited to 'src/eom-jobs.c')
-rw-r--r--src/eom-jobs.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/eom-jobs.c b/src/eom-jobs.c
index 3078610..6baed21 100644
--- a/src/eom-jobs.c
+++ b/src/eom-jobs.c
@@ -443,11 +443,8 @@ eom_job_model_run (EomJob *ejob)
eom_list_store_add_files (job->store, filtered_list);
- g_list_foreach (filtered_list, (GFunc) g_object_unref, NULL);
- g_list_free (filtered_list);
-
- g_list_foreach (error_list, (GFunc) g_free, NULL);
- g_list_free (error_list);
+ g_list_free_full (filtered_list, g_object_unref);
+ g_list_free_full (error_list, g_free);
ejob->finished = TRUE;
}
@@ -466,8 +463,7 @@ eom_job_transform_dispose (GObject *object)
job->trans = NULL;
}
- g_list_foreach (job->images, (GFunc) g_object_unref, NULL);
- g_list_free (job->images);
+ g_list_free_full (job->images, g_object_unref);
(* G_OBJECT_CLASS (eom_job_transform_parent_class)->dispose) (object);
}
@@ -566,8 +562,7 @@ eom_job_save_dispose (GObject *object)
job = EOM_JOB_SAVE (object);
if (job->images) {
- g_list_foreach (job->images, (GFunc) g_object_unref, NULL);
- g_list_free (job->images);
+ g_list_free_full (job->images, g_object_unref);
job->images = NULL;
}