mdns: Fix a crash on context error
authorJan Schmidt <jan@centricular.com>
Fri, 18 Aug 2023 08:21:18 +0000 (18:21 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 20 Aug 2023 16:30:11 +0000 (17:30 +0100)
commit1347f71b6dfa5d44bec3d15c1c1a5df7c929f62d
tree869663019b94ed10f001c79fc33095a1f96821fe
parent9bf6919f7f0731e7b77e416dc23be13155740aba
mdns: Fix a crash on context error

Make sure not to free the microdns provider context until the
device provider asks it to stop. Fixes a crash if there is
an error (such as MDNS port being busy) that makes the
mdns listener exit early.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5207>
subprojects/gst-plugins-bad/ext/mdns/gstmicrodnsdevice.c