More valgrinding and fixing a serious mem leak - Alex
[terminatorX.git] / src / tX_engine.cc
index 5aa10a67d0c75c21f5705231a69e57f22cd98833..23baf2b5bfa5ba24b10881f57a13dcecfbf8eb94 100644 (file)
@@ -317,10 +317,14 @@ void tX_engine :: stop() {
 
 tX_engine :: ~tX_engine() {
        void *dummy;
-       
+               
        thread_terminate=true;
        stop_flag=true;
        pthread_mutex_unlock(&start);
        tX_debug("~tX_engine() - Waiting for engine thread to terminate.");
        pthread_join(thread, &dummy);   
+       
+       delete mouse;
+       delete midi;
+       delete tape;    
 }