mirror of
https://github.com/mpv-player/mpv
synced 2025-03-29 15:00:27 +00:00
wayland: clean wp_presentation_feedback in discard callback to avoid leak
This commit is contained in:
parent
8314c907ab
commit
964692ad4c
@ -1022,6 +1022,8 @@ static void feedback_presented(void *data, struct wp_presentation_feedback *fbac
|
||||
|
||||
static void feedback_discarded(void *data, struct wp_presentation_feedback *fback)
|
||||
{
|
||||
if (fback)
|
||||
wp_presentation_feedback_destroy(fback);
|
||||
}
|
||||
|
||||
static const struct wp_presentation_feedback_listener feedback_listener = {
|
||||
|
Loading…
Reference in New Issue
Block a user