Fix free-ing invalid pointer in call devices. From Jason Volk <jason@zemos.net>

This commit is contained in:
Joseph Donofry 2023-01-23 16:34:24 -05:00
parent d59f0768f0
commit d511814caf

View file

@ -279,7 +279,7 @@ CallDevices::deinit()
{ {
if (monitor) { if (monitor) {
gst_device_monitor_stop(monitor); gst_device_monitor_stop(monitor);
g_free(monitor); gst_object_unref(monitor);
monitor = nullptr; monitor = nullptr;
} }
} }