diff options
author | Aaron Boxer <boxerab@protonmail.com> | 2022-09-27 11:36:02 -0400 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2022-10-26 18:41:47 +0000 |
commit | 964692ad4cec90888bb437064c53d8844db9f590 (patch) | |
tree | a01e72b153da00bf5dd63b8df42ee1c2fbee301a | |
parent | 8314c907ab5c0a94912dc09d69638a3a4cd7dd49 (diff) | |
download | mpv-964692ad4cec90888bb437064c53d8844db9f590.tar.bz2 mpv-964692ad4cec90888bb437064c53d8844db9f590.tar.xz |
wayland: clean wp_presentation_feedback in discard callback to avoid leak
-rw-r--r-- | video/out/wayland_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index e4a590704b..8a9158e2b1 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -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 = { |