tools: gst-device-monitor: fix props leak
authorTim-Philipp Müller <tim@centricular.com>
Thu, 16 Jul 2015 09:54:29 +0000 (10:54 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 16 Jul 2015 09:54:29 +0000 (10:54 +0100)
CID 1311942

tools/gst-device-monitor.c

index 8fe6f80..c4a1d5e 100644 (file)
@@ -81,6 +81,7 @@ device_added (GstDevice * device)
   if (props) {
     g_print ("\tproperties:");
     gst_structure_foreach (props, print_structure_field, NULL);
+    gst_structure_free (props);
     g_print ("\n");
   }
   g_print ("\n");