From 624d25b8c3e9bd1648fdadbe28e1859cecab494f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 22 May 2016 16:44:11 +0200 Subject: Explicitly stop the loader thread to ensure we don't delete the DrumGizmo::drumkit member while the loader is attached to it. --- src/drumgizmo.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/drumgizmo.cc') diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc index 03b17bf..6c639b8 100644 --- a/src/drumgizmo.cc +++ b/src/drumgizmo.cc @@ -62,10 +62,12 @@ DrumGizmo::DrumGizmo(Settings& settings, { audioCache.init(10000); // start thread events.reserve(1000); + loader.init(); } DrumGizmo::~DrumGizmo() { + loader.deinit(); audioCache.deinit(); // stop thread } -- cgit v1.2.3