mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 06:35:46 +01:00
fix some memory leaks
This commit is contained in:
parent
167991eceb
commit
89e63b4bce
5 changed files with 10 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue