remove invalid free. - fixes crash with generic midi surface
authorRobin Gareus <robin@gareus.org>
Sat, 12 Dec 2015 13:52:35 +0000 (14:52 +0100)
committerRobin Gareus <robin@gareus.org>
Sat, 12 Dec 2015 13:52:35 +0000 (14:52 +0100)
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.

libs/pbd/pbd/abstract_ui.cc

index 323435bdd9fd8b9edf1bc371711c3d42227cd30d..a4da437934ab62c65701b70e78543c3d36f31628 100644 (file)
@@ -211,7 +211,6 @@ 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);
                                 }
                         }