From d511814caf454defb22b84aa36f1d272689d5d3d Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Mon, 23 Jan 2023 16:34:24 -0500 Subject: [PATCH] Fix free-ing invalid pointer in call devices. From Jason Volk --- src/voip/CallDevices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/voip/CallDevices.cpp b/src/voip/CallDevices.cpp index ee9a7f43..372209d0 100644 --- a/src/voip/CallDevices.cpp +++ b/src/voip/CallDevices.cpp @@ -279,7 +279,7 @@ CallDevices::deinit() { if (monitor) { gst_device_monitor_stop(monitor); - g_free(monitor); + gst_object_unref(monitor); monitor = nullptr; } }