+GSList *removed_filter_list;
+
+/* Remove the specified filter from the list of existing color filters,
+ * and add it to the list of removed color filters.
+ * This way, unmarking and marking a packet which matches a now removed
+ * color filter will still be colored correctly as the color filter is
+ * still reachable. */
+void remove_color_filter(color_filter_t *colorf)
+{
+ /* Remove colorf from the list of color filters */
+ filter_list = g_slist_remove(filter_list, colorf);
+ /* Add colorf to the list of removed color filters */
+ removed_filter_list = g_slist_prepend(removed_filter_list, colorf);
+}