void ofono_connection_manager_free(struct ofono_connection_manager *cm) { if (!cm) return; if (cm->base) ofono_base_free(cm->base); if (cm->remote) g_object_unref(cm->remote); g_free(cm); }
void ofono_sim_manager_free(struct ofono_sim_manager *sim) { if (!sim) return; if (sim->base) ofono_base_free(sim->base); if (sim->remote) g_object_unref(sim->remote); g_free(sim); }
void ofono_modem_free(struct ofono_modem *modem) { if (!modem) return; if (modem->name) g_free(modem->name); if (modem->serial) g_free(modem->serial); if (modem->revision) g_free(modem->revision); if (modem->base) ofono_base_free(modem->base); if (modem->remote) g_object_unref(modem->remote); g_free(modem); }