From e8adbb118fb79b05e1f1adf4081ef02df3ecd407 Mon Sep 17 00:00:00 2001 From: tpoole Date: Tue, 18 Apr 2017 10:48:37 +0100 Subject: [PATCH] Fixed bug in 9f06fabe105b91b952a3c679b810a0dac45d6c20 - Fixed a double-free Windows MIDI device bug --- modules/juce_audio_devices/native/juce_win32_Midi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_audio_devices/native/juce_win32_Midi.cpp b/modules/juce_audio_devices/native/juce_win32_Midi.cpp index cbb7fd4162..60f60099d2 100644 --- a/modules/juce_audio_devices/native/juce_win32_Midi.cpp +++ b/modules/juce_audio_devices/native/juce_win32_Midi.cpp @@ -388,7 +388,7 @@ private: { auto* activeHandle = parent.activeOutputHandles.getUnchecked (i); - if (han->deviceId == deviceId) + if (activeHandle->deviceId == deviceId) { activeHandle->refCount++; han = activeHandle;