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; } }