wsc: Reply and clean wsc_sm on netdev removal
This commit is contained in:
parent
b81737a7eb
commit
4c0d366fcf
|
@ -283,6 +283,14 @@ static void wsc_free(void *userdata)
|
||||||
{
|
{
|
||||||
struct wsc *wsc = userdata;
|
struct wsc *wsc = userdata;
|
||||||
|
|
||||||
|
if (wsc->pending) {
|
||||||
|
dbus_pending_reply(&wsc->pending,
|
||||||
|
dbus_error_not_available(wsc->pending));
|
||||||
|
|
||||||
|
wsc_sm_free(wsc->sm);
|
||||||
|
wsc->sm = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
l_free(wsc);
|
l_free(wsc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue