From 560dc511f7cefd118a31065d324e2e29b60e3202 Mon Sep 17 00:00:00 2001 From: Haihua Hu Date: Wed, 24 Apr 2024 01:02:15 +0900 Subject: [PATCH] wlwindow: clear configure mutex and cond when finalize Part-of: --- .../gst-plugins-bad/gst-libs/gst/wayland/gstwlwindow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlwindow.c b/subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlwindow.c index 6a662be26e..acd94bae66 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlwindow.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlwindow.c @@ -196,6 +196,10 @@ gst_wl_window_finalize (GObject * gobject) gst_wl_display_callback_destroy (priv->display, &priv->frame_callback); gst_wl_display_callback_destroy (priv->display, &priv->commit_callback); + g_cond_clear (&priv->configure_cond); + g_mutex_clear (&priv->configure_mutex); + g_mutex_clear (&priv->window_lock); + if (priv->xdg_toplevel) xdg_toplevel_destroy (priv->xdg_toplevel); if (priv->xdg_surface)