projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e20f3b
)
tools: gst-device-monitor: fix two memory leaks
author
Nirbheek Chauhan
<nirbheek@centricular.com>
Wed, 28 Oct 2015 18:31:01 +0000
(
00:01
+0530)
committer
Tim-Philipp Müller
<tim@centricular.com>
Wed, 28 Oct 2015 18:56:03 +0000
(18:56 +0000)
The removed GList link needs to be freed too, and
the G_OPTION_REMAINING arguments need to be freed.
tools/gst-device-monitor.c
patch
|
blob
|
history
diff --git
a/tools/gst-device-monitor.c
b/tools/gst-device-monitor.c
index
e9c2ed9
..
b09f9f8
100644
(file)
--- 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_
remov
e_link (devices, devices);
+ devices = g_list_
delet
e_link (devices, devices);
}
} else {
g_print ("No devices found!\n");