Skip to content
Commit 86bc1827 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui Committed by Robert Mader
Browse files

sound player: Don't unref undefined fields

If the sound player feature is disabled, none of those fields are
instantiated which causes the crash reported in #2451

Also switch to using g_clear_pointer while we are at it

Fixes https://gitlab.gnome.org/GNOME/mutter/-/issues/2451

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2706>

(cherry picked from commit 74bb4807)
parent 9e2d5fa4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment