summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drumgizmo/output/alsa.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/drumgizmo/output/alsa.cc b/drumgizmo/output/alsa.cc
index d6a2f19..f1a6806 100644
--- a/drumgizmo/output/alsa.cc
+++ b/drumgizmo/output/alsa.cc
@@ -55,10 +55,8 @@ AlsaOutputEngine::AlsaOutputEngine()
}
AlsaOutputEngine::~AlsaOutputEngine() {
- if (params) {
- // snd_pcm_hw_params_alloca uses std alloc
- free(params);
- }
+ // note: cannot release `params` (seg fault but why?)
+
if (handle != nullptr) {
snd_pcm_close(handle);
}