From 68643fd25ab743fe87b33fdc1416357edff3a3dd Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 1 Jun 2018 11:42:23 +0200 Subject: [PATCH] context: don't free NULL properties --- src/context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context.c b/src/context.c index c44c83701..5dda95852 100644 --- a/src/context.c +++ b/src/context.c @@ -122,8 +122,8 @@ static void registry_event_global_remove(void *object, uint32_t id) return; spa_list_remove(&g->link); - pw_properties_free(g->props); - + if (g->props) + pw_properties_free(g->props); if (g->destroy && g->info) g->destroy(g->info); free(g);