diff options
author | Dan Glastonbury <[email protected]> | 2017-05-22 18:55:15 +1000 |
---|---|---|
committer | Alex Chronopoulos <[email protected]> | 2017-05-22 11:55:15 +0300 |
commit | 96cdb173f86dfc86cbd21d097b24ec1e256d69fc (patch) | |
tree | d1e37936ba60cb43266b16430d2c0fa044bd1efe /test/common.h | |
parent | 91f801d661d6fcad9d01ea5ba3bbf5d59fa9ac4c (diff) | |
download | cubeb-96cdb173f86dfc86cbd21d097b24ec1e256d69fc.tar.gz cubeb-96cdb173f86dfc86cbd21d097b24ec1e256d69fc.zip |
Push destroy fns to backend (#302)
* Make cubeb_device_info_destroy private.
* Move implementation of cubeb_device_collection_destroy to cubeb_utils.
* Move cubeb_device_collection_destroy implementation into backend.
Push the responsiblity for destroying device collections to the
backends so they can make independent choices on how to handle
allocation.
* Unstage space changes
Diffstat (limited to 'test/common.h')
-rw-r--r-- | test/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/common.h b/test/common.h index 35368fa..374b9ac 100644 --- a/test/common.h +++ b/test/common.h @@ -82,7 +82,7 @@ int has_available_input_device(cubeb * ctx) if (devices->count == 0) { fprintf(stderr, "no input device available, skipping test.\n"); - cubeb_device_collection_destroy(devices); + cubeb_device_collection_destroy(ctx, devices); return 0; } @@ -96,7 +96,7 @@ int has_available_input_device(cubeb * ctx) "available, skipping\n"); } - cubeb_device_collection_destroy(devices); + cubeb_device_collection_destroy(ctx, devices); return !!input_device_available; } |