void space_free(t_space *x) { jbox_free((t_jbox *)x); delete x->f_viewer; delete x->f_recomposer; }
void meter_free(t_meter *x) { dsp_freejbox((t_pxjbox *)x); jgraphics_surface_destroy(x->gradientSurface); object_free((t_object *)x->clock); jbox_free((t_jbox *)x); }
void hoa_space_free(t_hoa_space *x) { jbox_free((t_jbox *)x); delete x->f_viewer; delete x->f_recomposer; clock_free(x->f_defer); }
void rd_free(t_rd *x){ jbox_free(&(x->ob)); critical_free(x->lock); if(x->buffer){ free(x->buffer); } }
void odisplay_free(t_odisplay *x) { qelem_free(x->qelem); object_free(x->new_data_indicator_clock); odisplay_clearBundles(x); critical_free(x->lock); jbox_free((t_jbox *)x); }
void meter_free(t_meter *x) { dsp_freejbox((t_pxjbox *)x); freeobject((t_object *)x->f_clock); jbox_free((t_jbox *)x); delete x->f_meter; delete x->f_vector; delete [] x->f_signals; }
void hoa_3d_scope_free(t_hoa_3d_scope *x) { dsp_freejbox((t_pxjbox *)x); clock_free(x->f_clock); jbox_free((t_jbox *)x); delete x->f_scope; delete [] x->f_signals; }
void hoa_scope_free(t_hoa_scope *x) { dsp_freejbox((t_pxjbox *)x); freeobject((t_object *)x->f_clock); jbox_free((t_jbox *)x); delete x->f_scope; delete [] x->f_signals; }
void scope_free(t_scope *x) { dsp_freejbox((t_pxjbox *)x); freeobject((t_object *)x->f_clock); jbox_free((t_jbox *)x); free(x->f_harmonicsValues); free(x->f_averageHarmo); delete x->f_viewer; }
void cc_free(t_cc *x){ #if defined(CC_MSP) && defined(CC_JBOX) dsp_freejbox((t_pxjbox *)x); jbox_free((t_jbox *)x); free(x->svin); free(x->svout); #elif defined(CC_MSP) dsp_free((t_pxobject *)x); free(x->svin); free(x->svout); #elif defined(CC_JBOX) jbox_free((t_jbox *)x); #endif void (*f)(t_object *, char *); hashtab_lookup(x->ht, gensym("my_free"), (t_object **)&f); if(f){ f((t_object *)x, x->user_obj); } /* if(x->build_path_is_tmp){ char buf[MAX_PATH_CHARS + 20]; sprintf(buf, "rm -f %s/%s.{o,dylib,st,log}", x->build_path, x->basename); system(buf); } */ free(x->code_buf); free(x->function_names); if(x->handle){ dlclose(x->handle); } free(x->def_cflags); free(x->def_ldflags); free(x->user_obj); int i; for(i = 0; i < x->ninlets - 1; i++){ object_free(x->proxies[i]); } free(x->proxies); free(x->outlets); }
void meter_free(t_meter *x) { dsp_freejbox((t_pxjbox *)x); freeobject((t_object *)x->f_clock); jbox_free((t_jbox *)x); delete x->f_meter; delete [] x->f_angles_of_channels; delete [] x->f_peaks; delete [] x->f_signals; delete [] x->f_overled; }
void paramui_free(t_paramui *x) { jbox_free(&x->box); qelem_free(x->menu_qelem); x->menu_qelem = NULL; object_free(x->menu_items); object_detach_byptr(x, x->obj_parameter); if(x->layout_value) jtextlayout_destroy(x->layout_value); if(x->layout_unit) jtextlayout_destroy(x->layout_unit); object_free(x->obj_parameter); }
void pictmeter_free(t_pictmeter *x) { dsp_freejbox((t_pxjbox *)x); freeobject((t_object *)x->p_clock); jbox_free((t_jbox *)x); }
void uisimp_free(t_uisimp *x) { jbox_free(&x->j_box); }
void hoa_gain_free(t_hoa_gain *x) { dsp_freejbox((t_pxjbox *)x); jbox_free((t_jbox *)x); delete x->f_amp; }
// Memory Deallocation void dbviewer_free(t_dbviewer *x) { db_view_remove(x->d_db, &x->d_view); db_close(&x->d_db); jbox_free(&x->d_box); }
void jucebox_free(t_jucebox* x) { jbox_free((t_jbox *)x); x->j_component->removeFromDesktop(); delete x->j_component; }
void uisimp_free(t_uisimp *x) { jbox_free((t_jbox *)x); }
void scripto_ui_free(t_scripto_ui *x) { jbox_free((t_jbox *)x); }