Free the caps used for the try
authorIain Holmes <iain@prettypeople.org>
Thu, 16 Sep 2004 11:34:50 +0000 (11:34 +0000)
committerIain Holmes <iain@prettypeople.org>
Thu, 16 Sep 2004 11:34:50 +0000 (11:34 +0000)
Original commit message from CVS:
Free the caps used for the try

ChangeLog
gst/audioconvert/gstaudioconvert.c

index f9d801a..09f041b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-16 Iain <iaingnome@gmail.com>
+
+       * gst/audioconvert/gstaudioconvert.c (_fixate_caps_to_int): Free the
+       try caps.
+
 2004-09-15  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
 
        * gst/mpegstream/gstdvddemux.c: (gst_dvd_demux_get_audio_stream):
index 861eb77..b2907cc 100644 (file)
@@ -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)) {