small leak fixes

This commit is contained in:
Wim Taymans 2019-10-02 18:33:47 +02:00
parent 5cfb6634f4
commit d4fab985a2
2 changed files with 2 additions and 0 deletions

View file

@ -194,6 +194,7 @@ void pw_device_destroy(struct pw_device *device)
pw_device_emit_free(device);
pw_properties_free(device->properties);
free(device->name);
free(device);
}

View file

@ -167,6 +167,7 @@ void pw_mempool_destroy(struct pw_mempool *pool)
spa_list_consume(b, &impl->blocks, link)
pw_memblock_free(&b->this);
pw_map_clear(&impl->map);
if (pool->props)
pw_properties_free(pool->props);
free(impl);