Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
viewer: Fix double free caused by ScrollView::MessageReceiver
waiting_for_events takes ownership of the passed event which is later deleted. Since we use unique_ptr::get() to acquire the pointer, we cause double free: one free happens in the code path where the event from waiting_for_events goes and the other free happens in unique_ptr destructor. The fix is to move ownership out of unique_ptr by unique_ptr::release(). Fixes: #3869 Fixes: 37b3374
- Loading branch information