client: Ops check on destroy

This commit is contained in:
Tim Kourt 2017-04-26 16:08:43 -07:00 committed by Denis Kenzior
parent 8f7066ec36
commit 425cb23f98
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ static void proxy_interface_destroy(void *data)
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 = NULL;