diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2015-10-29 00:01:01 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-10-28 18:56:03 +0000 |
commit | 49e71afe7bb397cd9572e0e49a4b36bd6468ff88 (patch) | |
tree | 9f12b19dc949673fa405e9542be4bb5bf8ca0d87 /tools | |
parent | 2e20f3ba4f36eaf3e652bd0f75ec2db73fea1501 (diff) |
tools: gst-device-monitor: fix two memory leaks
The removed GList link needs to be freed too, and
the G_OPTION_REMAINING arguments need to be freed.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gst-device-monitor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gst-device-monitor.c b/tools/gst-device-monitor.c index e9c2ed918..b09f9f89b 100644 --- a/tools/gst-device-monitor.c +++ b/tools/gst-device-monitor.c @@ -212,6 +212,7 @@ main (int argc, char **argv) g_strfreev (filters); } } + g_strfreev (args); g_print ("Probing devices...\n\n"); @@ -229,7 +230,7 @@ main (int argc, char **argv) device_added (device); gst_object_unref (device); - devices = g_list_remove_link (devices, devices); + devices = g_list_delete_link (devices, devices); } } else { g_print ("No devices found!\n"); |