gst/multipart/multipartmux.c: Fix caps memory leak. Fixes #514573.

Original commit message from CVS:
Patch by: orjan <orjanf at axis dot com>
* gst/multipart/multipartmux.c: (gst_multipart_mux_collected):
Fix caps memory leak. Fixes #514573.
This commit is contained in:
orjan 2008-02-05 17:59:24 +00:00 committed by Wim Taymans
parent 87eb1f391d
commit 533bc75229
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2008-02-05 Wim Taymans <wim.taymans@collabora.co.uk>
Patch by: orjan <orjanf at axis dot com>
* gst/multipart/multipartmux.c: (gst_multipart_mux_collected):
Fix caps memory leak. Fixes #514573.
2008-02-04 Edward Hervey <edward.hervey@collabora.co.uk> 2008-02-04 Edward Hervey <edward.hervey@collabora.co.uk>
* gst/avi/gstavidemux.c: (gst_avi_demux_parse_subindex): * gst/avi/gstavidemux.c: (gst_avi_demux_parse_subindex):

View file

@ -427,9 +427,12 @@ gst_multipart_mux_collected (GstCollectPads * pads, GstMultipartMux * mux)
newcaps = gst_caps_new_simple ("multipart/x-mixed-replace", newcaps = gst_caps_new_simple ("multipart/x-mixed-replace",
"boundary", G_TYPE_STRING, mux->boundary, NULL); "boundary", G_TYPE_STRING, mux->boundary, NULL);
if (!gst_pad_set_caps (mux->srcpad, newcaps)) if (!gst_pad_set_caps (mux->srcpad, newcaps)) {
gst_caps_unref (newcaps);
goto nego_error; goto nego_error;
}
gst_caps_unref (newcaps);
mux->negotiated = TRUE; mux->negotiated = TRUE;
} }