Commit 49e71afe authored by Nirbheek Chauhan's avatar Nirbheek Chauhan Committed by Tim-Philipp Müller

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.
parent 2e20f3ba
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment