From 2842232cf2074b32d5e7f6869d076dfe1692287a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gl=C3=B6ckner?= Date: Fri, 22 Jan 2016 08:53:36 +0100 Subject: suppressed segfault at alsa engine dtor --- drumgizmo/output/alsa.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'drumgizmo') 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); } -- cgit v1.2.3