Re-organized return value checking for dlna_src_formulate_extra_headers() so that checks for return value and NULL structure are minimized.  Also added call to free structure and use G_VALUE_INIT instead of { 0 }.  I ran gst-indent to realign restructuring I had done in dlna_src_formulate_extra_headers().  Unfortunately is also indented a lot of other lines which are included in this check in, rather than a separate white space checkin.
Re-organized return value checking for dlna_src_formulate_extra_headers() so that checks for return value and NULL structure are minimized.  Also added call to free structure and use G_VALUE_INIT instead of { 0 }.  I ran gst-indent to realign restructuring I had done in dlna_src_formulate_extra_headers().  Unfortunately is also indented a lot of other lines which are included in this check in, rather than a separate white space checkin.

cisco/gst-plugin-dlnasrc,cisco/gst-plugin-dlnasrc