void gegl_operation_context_purge (GeglOperationContext *self) { while (self->property) { Property *property = self->property->data; self->property = g_slist_remove (self->property, property); property_destroy (property); } }
void gegl_operation_context_remove_property (GeglOperationContext *self, const gchar *property_name) { Property *property = NULL; GSList *found; found = g_slist_find_custom (self->property, property_name, lookup_property); if (found) property = found->data; if (!property) { g_warning ("didn't find property %s for %s", property_name, GEGL_OPERATION_GET_CLASS (self->operation)->name); return; } self->property = g_slist_remove (self->property, property); property_destroy (property); }