mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-03-28 10:56:51 +01:00
client: Ops check on destroy
This commit is contained in:
parent
8f7066ec36
commit
425cb23f98
@ -418,7 +418,7 @@ static void proxy_interface_destroy(void *data)
|
|||||||
|
|
||||||
l_free(proxy->path);
|
l_free(proxy->path);
|
||||||
|
|
||||||
if (proxy->type->ops->destroy)
|
if (proxy->type->ops && proxy->type->ops->destroy)
|
||||||
proxy->type->ops->destroy(proxy->data);
|
proxy->type->ops->destroy(proxy->data);
|
||||||
|
|
||||||
proxy->type = NULL;
|
proxy->type = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user