Fix CID 1491157: use after free.
authorwwp <subscript@free.fr>
Mon, 4 Oct 2021 08:42:58 +0000 (10:42 +0200)
committerwwp <subscript@free.fr>
Mon, 4 Oct 2021 08:42:58 +0000 (10:42 +0200)
src/filtering.c

index edd0f3a9c770e22220ac7ec1ecc36c1e1f9ed48f..9e1d98158dafb70c1cf38ad4ead978a5ca8beb60 100644 (file)
@@ -1077,8 +1077,8 @@ static void prefs_filtering_free(GSList * prefs_filtering)
        while (prefs_filtering != NULL) {
                FilteringProp * filtering = (FilteringProp *)
                        prefs_filtering->data;
-               filteringprop_free(filtering);
                prefs_filtering = g_slist_remove(prefs_filtering, filtering);
+               filteringprop_free(filtering);
        }
 }