Remove extra free of cbs assembly

This commit is contained in:
Denis Kenzior 2009-09-11 15:18:27 -05:00
parent 5e754c6518
commit 227ac8f2e0
1 changed files with 2 additions and 10 deletions

View File

@ -426,10 +426,8 @@ static void cbs_remove(struct ofono_atom *atom)
if (cbs->driver && cbs->driver->remove)
cbs->driver->remove(cbs);
if (cbs->assembly) {
cbs_assembly_free(cbs->assembly);
cbs->assembly = NULL;
}
cbs_assembly_free(cbs->assembly);
cbs->assembly = NULL;
g_free(cbs);
}
@ -485,12 +483,6 @@ static void sim_watch(struct ofono_atom *atom,
if (cond == OFONO_ATOM_WATCH_CONDITION_UNREGISTERED) {
cbs->imsi_watch = 0;
if (cbs->assembly) {
cbs_assembly_free(cbs->assembly);
cbs->assembly = NULL;
}
return;
}