From f05a07837b7ca6f99d32bdfb1c72748e49a0dcab Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 20 Jan 2017 11:40:46 +0100 Subject: [PATCH] MIDI leaks -- the Controllergate conspiracy debunked --- libs/surfaces/generic_midi/midicontrollable.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/surfaces/generic_midi/midicontrollable.cc b/libs/surfaces/generic_midi/midicontrollable.cc index 6afd9d4d8a..bed85f49b4 100644 --- a/libs/surfaces/generic_midi/midicontrollable.cc +++ b/libs/surfaces/generic_midi/midicontrollable.cc @@ -88,6 +88,8 @@ MIDIControllable::MIDIControllable (GenericMidiControlProtocol* s, MIDI::Parser& MIDIControllable::~MIDIControllable () { drop_external_control (); + delete _descriptor; + _descriptor = 0; } int