summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/abstract_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-06-15 13:04:47 +0200
committerRobin Gareus <robin@gareus.org>2014-06-15 13:24:41 +0200
commit36be1a3a9b38cddfd36137ef4d39382dc61de5fb (patch)
tree18ae56e66a8eaad92ee244d6bc45d9bf8a7e2c21 /libs/pbd/pbd/abstract_ui.cc
parent51cbf674d30f55e0b7a41504e72df929864161fc (diff)
plug some leaks
Diffstat (limited to 'libs/pbd/pbd/abstract_ui.cc')
-rw-r--r--libs/pbd/pbd/abstract_ui.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/pbd/pbd/abstract_ui.cc b/libs/pbd/pbd/abstract_ui.cc
index 8841301afe..cf5292b9e6 100644
--- a/libs/pbd/pbd/abstract_ui.cc
+++ b/libs/pbd/pbd/abstract_ui.cc
@@ -211,6 +211,7 @@ AbstractUI<RequestObject>::handle_ui_requests ()
if (vec.buf[0]->invalidation) {
vec.buf[0]->invalidation->requests.remove (vec.buf[0]);
}
+ delete vec.buf[0];
i->second->increment_read_ptr (1);
}
}
@@ -326,6 +327,7 @@ AbstractUI<RequestObject>::send_request (RequestObject *req)
*/
DEBUG_TRACE (PBD::DEBUG::AbstractUI, string_compose ("%1/%2 direct dispatch of request type %3\n", name(), pthread_name(), req->type));
do_request (req);
+ delete req;
} else {
/* If called from a different thread, we first check to see if