summaryrefslogtreecommitdiffstats
path: root/ext/gdk_pixbuf/gstgdkpixbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gdk_pixbuf/gstgdkpixbuf.c')
-rw-r--r--ext/gdk_pixbuf/gstgdkpixbuf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/gdk_pixbuf/gstgdkpixbuf.c b/ext/gdk_pixbuf/gstgdkpixbuf.c
index ca1e36b9..864b54f3 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);