From 0c606747f10c4e60cb9004651e3e1d941b7405e6 Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Tue, 22 Feb 2005 12:04:16 +0000 Subject: ext/gdk_pixbuf/pixbufscale.c: Don't leak caps string (fixes #168134) Original commit message from CVS: * ext/gdk_pixbuf/pixbufscale.c: (gst_pixbufscale_link): Don't leak caps string (fixes #168134) * ext/jpeg/gstjpegenc.c: (gst_jpegenc_class_init), (gst_jpegenc_init), (gst_jpegenc_finalize), (gst_jpegenc_change_state): Don't leak line buffers and context struct (fixes #168133). --- ext/gdk_pixbuf/pixbufscale.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ext/gdk_pixbuf') diff --git a/ext/gdk_pixbuf/pixbufscale.c b/ext/gdk_pixbuf/pixbufscale.c index 3cfa17ee..1cecdab6 100644 --- a/ext/gdk_pixbuf/pixbufscale.c +++ b/ext/gdk_pixbuf/pixbufscale.c @@ -206,8 +206,12 @@ gst_pixbufscale_link (GstPad * pad, const GstCaps * caps) GstPad *otherpad; GstStructure *structure; int height, width; + gchar *caps_string; + + caps_string = gst_caps_to_string (caps); + GST_DEBUG ("gst_pixbufscale_link %s\n", caps_string); + g_free (caps_string); - GST_DEBUG ("gst_pixbufscale_link %s\n", gst_caps_to_string (caps)); pixbufscale = GST_PIXBUFSCALE (gst_pad_get_parent (pad)); otherpad = (pad == pixbufscale->srcpad) ? pixbufscale->sinkpad : -- cgit