Merge branch 'matthiasc/for-master' into 'master'

contentdeserializer: Plug a small memleak

See merge request GNOME/gtk!4026
This commit is contained in:
Matthias Clasen 2021-10-03 19:04:00 +00:00
commit f2dbf57104

View File

@ -1008,11 +1008,13 @@ init (void)
if (!g_get_charset (&charset))
{
char *mime = g_strdup_printf ("text/plain;charset=%s", charset);
gdk_content_register_deserializer (mime,
G_TYPE_STRING,
string_deserializer,
(gpointer) charset,
g_free);
g_free (mime);
}
gdk_content_register_deserializer ("text/plain",
G_TYPE_STRING,