diff --git a/client/dbus-proxy.c b/client/dbus-proxy.c index 0a580406..1283764d 100644 --- a/client/dbus-proxy.c +++ b/client/dbus-proxy.c @@ -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;