+2004-11-03 Christophe Fergeau <teuf@gnome.org>
+
+ * gst/videoscale/gstvideoscale.c: (gst_videoscale_getcaps):
+ * gst/videoscale/videoscale.c: (videoscale_find_by_structure):
+ leak fixes
+
2004-11-03 Wim Taymans <wim@fluendo.com>
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
gst_videoscale_getcaps (GstPad * pad)
{
GstVideoscale *videoscale;
- GstCaps *othercaps;
GstCaps *caps;
GstPad *otherpad;
int i;
otherpad = (pad == videoscale->srcpad) ? videoscale->sinkpad :
videoscale->srcpad;
- othercaps = gst_pad_get_allowed_caps (otherpad);
+ caps = gst_pad_get_allowed_caps (otherpad);
GST_DEBUG_OBJECT (pad, "othercaps of otherpad %s:%s are: %" GST_PTR_FORMAT,
- GST_DEBUG_PAD_NAME (otherpad), othercaps);
+ GST_DEBUG_PAD_NAME (otherpad), caps);
- caps = gst_caps_copy (othercaps);
for (i = 0; i < gst_caps_get_size (caps); i++) {
GstStructure *structure = gst_caps_get_structure (caps, i);
int i;
gboolean ret;
struct videoscale_format_struct *format;
+ char *str;
- GST_DEBUG ("finding %s", gst_structure_to_string (structure));
+ str = gst_structure_to_string (structure);
+ GST_DEBUG ("finding %s", str);
+ g_free (str);
g_return_val_if_fail (structure != NULL, NULL);