wsc: Reply and clean wsc_sm on netdev removal

This commit is contained in:
Denis Kenzior 2015-10-06 11:39:01 -05:00
parent b81737a7eb
commit 4c0d366fcf
1 changed files with 8 additions and 0 deletions

View File

@ -283,6 +283,14 @@ static void wsc_free(void *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);
}