static void loop_remove_event(rb_mt_loop *loop, rb_mt_event *event) { if (event->inserted) { events_remove(&loop->events, event); } callbacks_remove(&loop->callbacks, event); }
void python_plugin_destroy(ProfPlugin *plugin) { disable_python_threads(); callbacks_remove(plugin->name); disco_remove_features(plugin->name); free(plugin->name); free(plugin); allow_python_threads(); }