GNOME Bugzilla – Bug 698888
SDP session bandwidth not duplicated, causing segfault when freeing...
Last modified: 2013-04-26 06:42:55 UTC
gst_sdp_message_add_bandwidth() failed to duplicate the bandwidth attribute name (compare gst_sdp_media_add_bandwidth()). This caused problems when calling gst_sdp_message_free() as it assumes that all attribute names are duplicated. The attached patch fixes the problem.
Created attachment 242458 [details] [review] Proposed patch fixing problem.
commit f7e879aa18d874d21024093fd0f09e8ec7f24d26 Author: Sebastian Rasmussen <sebrn@axis.com> Date: Thu Apr 25 21:10:04 2013 +0200 sdp: Store a copy of the bandwidth string Otherwise we will free a string later that does not belong to us. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=698888