From 3271cc9f9de0550891cad9728fe6c51e75ebb3a2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 15 Oct 2007 14:33:16 +0000 Subject: [PATCH] tools/gst-inspect.c: Don't crash when inspecting an element. Original commit message from CVS: * tools/gst-inspect.c: (print_element_info): Don't crash when inspecting an element. --- ChangeLog | 5 +++++ tools/gst-inspect.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d2171d7836..5053b1c4e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-15 Wim Taymans + + * tools/gst-inspect.c: (print_element_info): + Don't crash when inspecting an element. + 2007-10-15 Tim-Philipp Müller * tests/check/gst/gststructure.c: diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index 7e86ae2423..9ea3fcd54e 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -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; }