tools/gst-inspect.c: Don't crash when inspecting an element.
authorWim Taymans <wim.taymans@gmail.com>
Mon, 15 Oct 2007 14:33:16 +0000 (14:33 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 15 Oct 2007 14:33:16 +0000 (14:33 +0000)
Original commit message from CVS:
* tools/gst-inspect.c: (print_element_info):
Don't crash when inspecting an element.

ChangeLog
tools/gst-inspect.c

index d2171d7..5053b1c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-15  Wim Taymans  <wim.taymans@gmail.com>
+
+       * tools/gst-inspect.c: (print_element_info):
+       Don't crash when inspecting an element.
+
 2007-10-15  Tim-Philipp Müller  <tim at centricular dot net>
 
        * tests/check/gst/gststructure.c:
index 7e86ae2..9ea3fcd 100644 (file)
@@ -1118,8 +1118,7 @@ print_element_info (GstElementFactory * factory, gboolean print_names)
   print_children_info (element);
 
   gst_object_unref (factory);
-  if (_name[0] != '\0')
-    g_free (_name);
+  g_free (_name);
 
   return 0;
 }