summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/gtk_ui.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-01-28 16:54:25 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-01-28 16:54:25 +0000
commit9ca089d20dee0f0e74014086a7d8ac2c41c6e898 (patch)
tree354c5ecb0c49308fdcd3d5ee207c7487d0204976 /libs/gtkmm2ext/gtk_ui.cc
parent4e2d99fd211f92130e9d07365af0ea14d511ed59 (diff)
important bug fix in handling GUI messages; destructive tracks now operational (lots of GUI stuff to fix for them)
git-svn-id: svn://localhost/trunk/ardour2@302 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext/gtk_ui.cc')
-rw-r--r--libs/gtkmm2ext/gtk_ui.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/gtkmm2ext/gtk_ui.cc b/libs/gtkmm2ext/gtk_ui.cc
index 6b0326ab67..747d4be0cd 100644
--- a/libs/gtkmm2ext/gtk_ui.cc
+++ b/libs/gtkmm2ext/gtk_ui.cc
@@ -522,6 +522,7 @@ UI::do_request (Request* req)
case ErrorMessage:
process_error_message (req->chn, req->msg);
free (const_cast<char*>(req->msg)); /* it was strdup'ed */
+ req->msg = 0; /* don't free it again in the destructor */
break;
case Quit:
@@ -594,7 +595,7 @@ UI::send_request (Request *req)
abort ();
}
- // cerr << "thread " << pthread_self() << " sent request " << req << " type = " << req->type << endl;
+ cerr << "thread " << pthread_self() << " sent request " << req << " type = " << req->type << endl;
rbuf->increment_write_ptr (1);
write (signal_pipe[1], &c, 1);
}