mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
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.
This commit is contained in:
parent
2e20f3ba4f
commit
49e71afe7b
1 changed files with 2 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue