diff options
author | Christian Glöckner <cgloeckner@freenet.de> | 2016-01-22 08:53:36 +0100 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2016-02-09 09:03:15 +0100 |
commit | 2842232cf2074b32d5e7f6869d076dfe1692287a (patch) | |
tree | d6c1405894523fd4b48a198897838ecec811f343 /drumgizmo/output | |
parent | c10190c511688ae0b17bfaf9a24b9debc94c06f7 (diff) |
suppressed segfault at alsa engine dtor
Diffstat (limited to 'drumgizmo/output')
-rw-r--r-- | drumgizmo/output/alsa.cc | 6 |
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); } |