mirror of git://git.sysmocom.de/ofono
Remove extra free of cbs assembly
This commit is contained in:
parent
5e754c6518
commit
227ac8f2e0
12
src/cbs.c
12
src/cbs.c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue