Esempio n. 1
0
void
brush_free(MyPaintBrush *self)
{
    for (int i=0; i<MYPAINT_BRUSH_SETTINGS_COUNT; i++) {
        mypaint_mapping_free(self->settings[i]);
    }
    rng_double_free (self->rng);
    self->rng = NULL;

#ifdef HAVE_JSON_C
    if (self->brush_json) {
        json_object_put(self->brush_json);
    }
#endif

    free(self);
}
Esempio n. 2
0
 ~MappingWrapper() {
     mypaint_mapping_free(c_mapping);
 }