void effect_destroy(effect_t effect) { if (effect) { effect_free(effect); bfree(effect); } }
static void run_handler (MetaEffect *effect) { if (meta_prefs_get_mate_animations ()) run_default_effect_handler (effect); effect_free (effect); }
static void run_handler (MetaEffect *effect) { /* If effects are disabled just run the finished function */ if (meta_prefs_get_mate_animations ()) { run_default_effect_handler (effect); } else { if (effect->priv->finished) effect->priv->finished(effect->priv->finished_data); } effect_free (effect); }
void gs_effect_actually_destroy(gs_effect_t *effect) { effect_free(effect); bfree(effect); }