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 f9d801aced256a9ad15a10821a80db94f58b71ce..09f041bdf503ef9293605af08cd84d34cc0059be 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 861eb77dc0e7382bd0bf3d46853d313881d040f5..b2907ccea16e748de575c317c31559d30888a0f4 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)) {