Plug a memory leak

gdk_pixbuf_format_get_name returns newly allocated
strings.
This commit is contained in:
Matthias Clasen 2018-01-04 22:54:29 -05:00
parent 98da7730ea
commit 407d3db2b6

View File

@ -850,12 +850,12 @@ init (void)
gdk_content_register_serializer (GDK_TYPE_TEXTURE,
*m,
pixbuf_serializer,
g_strdup (gdk_pixbuf_format_get_name (fmt)),
gdk_pixbuf_format_get_name (fmt),
g_free);
gdk_content_register_serializer (GDK_TYPE_PIXBUF,
*m,
pixbuf_serializer,
g_strdup (gdk_pixbuf_format_get_name (fmt)),
gdk_pixbuf_format_get_name (fmt),
g_free);
}
g_strfreev (mimes);