even more attempted changes for ipMIDI on windows
[ardour.git] / libs / midi++2 / port.cc
index 14802028671d6eba23aff504dbb77d6abaf60de4..629dff07969ba64b739dce6dfb724d53e997e71d 100644 (file)
@@ -1,6 +1,6 @@
 /*
     Copyright (C) 1998 Paul Barton-Davis
-    
+
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 2 of the License, or
@@ -22,9 +22,6 @@
 #include <fcntl.h>
 #include <errno.h>
 
-#include <jack/jack.h>
-#include <jack/midiport.h>
-
 #include "pbd/xml++.h"
 #include "pbd/error.h"
 #include "pbd/failed_constructor.h"
@@ -84,6 +81,8 @@ Port::~Port ()
        for (int i = 0; i < 16; i++) {
                delete _channel[i];
        }
+
+       delete _parser;
 }
 
 /** Send a clock tick message.
@@ -93,11 +92,11 @@ bool
 Port::clock (timestamp_t timestamp)
 {
        static byte clockmsg = 0xf8;
-       
+
        if (sends_output()) {
                return midimsg (&clockmsg, 1, timestamp);
        }
-       
+
        return false;
 }
 
@@ -140,7 +139,7 @@ Port::Descriptor::Descriptor (const XMLNode& node)
        }
 }
 
-XMLNode& 
+XMLNode&
 Port::get_state () const
 {
        XMLNode* root = new XMLNode (state_node_name);
@@ -151,7 +150,7 @@ Port::get_state () const
        } else {
                root->add_property ("mode", "output");
        }
-       
+
 #if 0
        byte device_inquiry[6];
 
@@ -161,7 +160,7 @@ Port::get_state () const
        device_inquiry[0] = 0x06;
        device_inquiry[0] = 0x02;
        device_inquiry[0] = 0xf7;
-       
+
        write (device_inquiry, sizeof (device_inquiry), 0);
 #endif