summaryrefslogtreecommitdiff
path: root/libs/ardour/worker.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-03-23 00:46:12 +0100
committerRobin Gareus <robin@gareus.org>2014-03-23 00:46:12 +0100
commit89e63b4bce0fbbbdfe5c2685e929c0f46bbbf7ca (patch)
treee1be268c907d7855b107f9fb15f816a8651aad9e /libs/ardour/worker.cc
parent167991ecebe30847f76c028bd501f49968271069 (diff)
fix some memory leaks
Diffstat (limited to 'libs/ardour/worker.cc')
-rw-r--r--libs/ardour/worker.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/worker.cc b/libs/ardour/worker.cc
index b110dc286f..5b416afa46 100644
--- a/libs/ardour/worker.cc
+++ b/libs/ardour/worker.cc
@@ -124,6 +124,7 @@ Worker::run()
while (true) {
_sem.wait();
if (_exit) {
+ if (buf) free(buf);
return;
}
@@ -135,6 +136,7 @@ Worker::run()
while (!verify_message_completeness(_requests)) {
Glib::usleep(2000);
if (_exit) {
+ if (buf) free(buf);
return;
}
}