aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJean-Yves Avenard <[email protected]>2018-09-12 19:29:00 +0200
committerJean-Yves Avenard <[email protected]>2018-09-12 19:29:00 +0200
commitdf711063dae80ae209b9ee54939d348273765125 (patch)
tree693cec44d1338f317b1151cf9c25bccf1b298bc1
parent1b4547f695f88e877e199763a0f84da85349e742 (diff)
downloadcubeb-df711063dae80ae209b9ee54939d348273765125.tar.gz
cubeb-df711063dae80ae209b9ee54939d348273765125.zip
Do not attempt to destroy an aggregate device we failed to create
-rw-r--r--src/cubeb_audiounit.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cubeb_audiounit.cpp b/src/cubeb_audiounit.cpp
index 3ee36d4..4c8f064 100644
--- a/src/cubeb_audiounit.cpp
+++ b/src/cubeb_audiounit.cpp
@@ -1860,7 +1860,6 @@ audiounit_create_aggregate_device(cubeb_stream * stm)
int r = audiounit_create_blank_aggregate_device(&stm->plugin_id, &stm->aggregate_device_id);
if (r != CUBEB_OK) {
LOG("(%p) Failed to create blank aggregate device", stm);
- audiounit_destroy_aggregate_device(stm->plugin_id, &stm->aggregate_device_id);
return CUBEB_ERROR;
}