From aefa946809ccd3b996953447199f0ea8c34a48bd Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 3 Feb 2004 22:51:34 +0000 Subject: [PATCH] ext/gdk_pixbuf/gstgdkpixbuf.c: more memleak fixage Original commit message from CVS: 2004-02-03 Benjamin Otte * ext/gdk_pixbuf/gstgdkpixbuf.c: (gst_gdk_pixbuf_type_find): more memleak fixage --- ChangeLog | 5 +++++ ext/gdk_pixbuf/gstgdkpixbuf.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 73a5eae469..e8c5eb9482 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-02-03 Benjamin Otte + + * ext/gdk_pixbuf/gstgdkpixbuf.c: (gst_gdk_pixbuf_type_find): + more memleak fixage + 2004-02-03 Benjamin Otte * ext/gdk_pixbuf/gstgdkpixbuf.c: (plugin_init): diff --git a/ext/gdk_pixbuf/gstgdkpixbuf.c b/ext/gdk_pixbuf/gstgdkpixbuf.c index ca1e36b9a8..864b54f315 100644 --- a/ext/gdk_pixbuf/gstgdkpixbuf.c +++ b/ext/gdk_pixbuf/gstgdkpixbuf.c @@ -413,10 +413,13 @@ gst_gdk_pixbuf_type_find (GstTypeFind *tf, gpointer ignore) format = gdk_pixbuf_loader_get_format (pixbuf_loader); if (format != NULL) { + GstCaps *caps; gchar **mlist = gdk_pixbuf_format_get_mime_types(format); - gst_type_find_suggest (tf, GST_TYPE_FIND_MINIMUM, - gst_caps_new_simple (mlist[0], NULL)); + caps = gst_caps_new_simple (mlist[0], NULL); + gst_type_find_suggest (tf, GST_TYPE_FIND_MINIMUM, caps); + gst_caps_free (caps); + g_strfreev (mlist); } gdk_pixbuf_loader_close (pixbuf_loader, NULL);