From 02be6646ccbd1993cd1f2f048f3a02f4b13ec291 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Thu, 16 Sep 2004 11:34:50 +0000 Subject: [PATCH] Free the caps used for the try Original commit message from CVS: Free the caps used for the try --- ChangeLog | 5 +++++ gst/audioconvert/gstaudioconvert.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index f9d801a..09f041b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-09-16 Iain + + * gst/audioconvert/gstaudioconvert.c (_fixate_caps_to_int): Free the + try caps. + 2004-09-15 Ronald S. Bultje * gst/mpegstream/gstdvddemux.c: (gst_dvd_demux_get_audio_stream): diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c index 861eb77..b2907cc 100644 --- a/gst/audioconvert/gstaudioconvert.c +++ b/gst/audioconvert/gstaudioconvert.c @@ -462,6 +462,7 @@ _fixate_caps_to_int (GstCaps ** caps, const gchar * field, gint value) gst_caps_append (try, gst_caps_new_simple ("audio/x-raw-float", field, GST_TYPE_INT_RANGE, value, G_MAXINT, NULL)); isect_higher = gst_caps_intersect (*caps, try); + gst_caps_free (try); /* FIXME: why choose to end up with the higher range, and not the fixed * value ? */ if (!gst_caps_is_empty (isect_higher)) { -- 2.7.4