Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /branches/stable_1_7/src/sound/AlsaDriver.cpp [r10771] .. [r10772] Maximize Restore

  Switch to side-by-side view

--- a/branches/stable_1_7/src/sound/AlsaDriver.cpp
+++ b/branches/stable_1_7/src/sound/AlsaDriver.cpp
@@ -145,7 +145,9 @@
     std::cerr << "AlsaDriver::~AlsaDriver - shutting down" << std::endl;
 #endif
 
-    processNotesOff(getAlsaTime(), true, true);
+    if (m_midiHandle) {
+	processNotesOff(getAlsaTime(), true, true);
+    }
 
 #ifdef HAVE_LIBJACK
     delete m_jackDriver;