about gst_pad_get_name

Yogesh Tyagi yogesh.bit2006 at gmail.com
Mon Oct 13 04:38:22 PDT 2014


Hi,



I have read from documentation that "gst_pad_get_name " gets a copy of the
name of the pad and I need to g_free()
<https://developer.gnome.org/glib/unstable/glib-Memory-Allocation.html#g-free>
after
usage.

  so in the followng example I have g_freed the padname after usage:


   gchar      *this_padname = gst_pad_get_name (GST_PAD(pad));

   GST_DEBUG_OBJECT (demux, "removing src pad: %s", this_padname);

   g_free(this_padname);


but do I need to free padname in following case:


GST_DEBUG_OBJECT (demux, "removing src pad: %s", gst_pad_get_name
(GST_PAD(pad)));

Thanks,
Yogesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141013/e295f02f/attachment-0001.html>


More information about the gstreamer-devel mailing list