Stop recursion in registering serializers

This was probably unintentional, and messes up
the ordering of our registration.
This commit is contained in:
Matthias Clasen 2022-09-06 23:35:48 -04:00
parent d850dfd245
commit 9654fd451f
2 changed files with 0 additions and 4 deletions

View File

@ -407,8 +407,6 @@ gdk_content_register_deserializer (const char *mime_type,
g_return_if_fail (mime_type != NULL);
g_return_if_fail (deserialize != NULL);
init ();
deserializer = g_slice_new0 (Deserializer);
deserializer->mime_type = g_intern_string (mime_type);

View File

@ -413,8 +413,6 @@ gdk_content_register_serializer (GType type,
g_return_if_fail (mime_type != NULL);
g_return_if_fail (serialize != NULL);
init ();
serializer = g_slice_new0 (Serializer);
serializer->mime_type = g_intern_string (mime_type);