13
0

remove invalid free. - fixes crash with generic midi surface

if there is a per_thread_request_buffer,  get_request() simply puts a
POD RequestType on the ringbuffer's head.  send_request() increases
the write-pointer.  There is no memory to free.
This commit is contained in:
Robin Gareus 2015-12-12 14:52:35 +01:00
parent dac57703cc
commit 6a1799f095

View File

@ -211,7 +211,6 @@ AbstractUI<RequestObject>::handle_ui_requests ()
if (vec.buf[0]->invalidation) { if (vec.buf[0]->invalidation) {
vec.buf[0]->invalidation->requests.remove (vec.buf[0]); vec.buf[0]->invalidation->requests.remove (vec.buf[0]);
} }
delete vec.buf[0];
i->second->increment_read_ptr (1); i->second->increment_read_ptr (1);
} }
} }