Original commit message from CVS:
Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com>
* gst-libs/gst/rtsp/gstrtspmessage.c: (gst_rtsp_message_unset):
Fix leaking headers. Fixes #496761.
Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com>
+ * gst-libs/gst/rtsp/gstrtspmessage.c: (gst_rtsp_message_unset):
+ Fix leaking headers. Fixes #496761.
+
+2007-11-16 Wim Taymans <wim.taymans@gmail.com>
+
+ Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com>
+
* sys/ximage/ximagesink.c: (gst_ximagesink_xcontext_get),
(gst_ximagesink_change_state):
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_xcontext_get):
break;
}
- if (msg->hdr_fields != NULL)
- g_array_free (msg->hdr_fields, TRUE);
+ if (msg->hdr_fields != NULL) {
+ gint i;
+
+ for (i = 0; i < msg->hdr_fields->len; i++) {
+ RTSPKeyValue *keyval = &g_array_index (msg->hdr_fields, RTSPKeyValue, i);
+ g_free (keyval->value);
+ }
+ g_array_free (msg->hdr_fields, TRUE);
+ }
g_free (msg->body);
memset (msg, 0, sizeof *msg);