diff --git a/Timeline/Engine/Engine.C b/Timeline/Engine/Engine.C index 4fdd646..d101edd 100644 --- a/Timeline/Engine/Engine.C +++ b/Timeline/Engine/Engine.C @@ -43,6 +43,12 @@ Engine::Engine ( ) : _thread( "RT" ) _xruns = 0; } +Engine::~Engine ( ) +{ + jack_deactivate( _client ); + jack_client_close( _client ); +} + /*******************/ diff --git a/Timeline/Engine/Engine.H b/Timeline/Engine/Engine.H index a7cd06d..6e1eca1 100644 --- a/Timeline/Engine/Engine.H +++ b/Timeline/Engine/Engine.H @@ -73,6 +73,7 @@ private: public: Engine ( ); + ~Engine ( ); const char * init ( void ); diff --git a/Timeline/main.C b/Timeline/main.C index a947ba1..a7b3659 100644 --- a/Timeline/main.C +++ b/Timeline/main.C @@ -148,5 +148,7 @@ main ( int argc, char **argv ) Fl::run(); + delete engine; + MESSAGE( "Your fun is over" ); }