summary refs log tree commit diff
path: root/src/voip
diff options
context:
space:
mode:
authorJoseph Donofry <rubberduckie3554@gmail.com>2023-01-23 16:34:24 -0500
committerJoseph Donofry <rubberduckie3554@gmail.com>2023-01-23 16:34:24 -0500
commitd511814caf454defb22b84aa36f1d272689d5d3d (patch)
treef6e6fac0ad62001617128d9dababaca3adfeb3c1 /src/voip
parentMerge pull request #1317 from tastytea/fix-zsh-completion (diff)
downloadnheko-d511814caf454defb22b84aa36f1d272689d5d3d.tar.xz
Fix free-ing invalid pointer in call devices. From Jason Volk <jason@zemos.net>
Diffstat (limited to 'src/voip')
-rw-r--r--src/voip/CallDevices.cpp2
1 files changed, 1 insertions, 1 deletions
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;
     }
 }