From 425cb23f981bfa3a5b0599faacb91b6fb1e5e42c Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Wed, 26 Apr 2017 16:08:43 -0700 Subject: [PATCH] client: Ops check on destroy --- client/dbus-proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;