mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Plug a memory leak
gdk_pixbuf_format_get_name returns newly allocated strings.
This commit is contained in:
parent
98da7730ea
commit
407d3db2b6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user