[gtk/fix-file-transfer-portal: 1/3] Stop recursion in registering serializers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-file-transfer-portal: 1/3] Stop recursion in registering serializers
- Date: Wed, 7 Sep 2022 03:46:14 +0000 (UTC)
commit 9654fd451f8628d5a164322dcf5ce055e36e47d9
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Sep 6 23:35:48 2022 -0400
Stop recursion in registering serializers
This was probably unintentional, and messes up
the ordering of our registration.
gdk/gdkcontentdeserializer.c | 2 --
gdk/gdkcontentserializer.c | 2 --
2 files changed, 4 deletions(-)
---
diff --git a/gdk/gdkcontentdeserializer.c b/gdk/gdkcontentdeserializer.c
index 9e33bcf63c..7603cec306 100644
--- a/gdk/gdkcontentdeserializer.c
+++ b/gdk/gdkcontentdeserializer.c
@@ -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);
diff --git a/gdk/gdkcontentserializer.c b/gdk/gdkcontentserializer.c
index 3d1295b33e..686f15af80 100644
--- a/gdk/gdkcontentserializer.c
+++ b/gdk/gdkcontentserializer.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]