diff options
author | Jens Georg <mail@jensge.org> | 2019-01-24 11:32:22 +0100 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2019-01-24 11:32:22 +0100 |
commit | ac5e4e5b5854da9b0f4d79d601651d9bfe653d5d (patch) | |
tree | 304deeff8c3977f78c5b6a2cde947968af36dd3c | |
parent | ced9e81b121168f04d5019113580b0ff7df8b804 (diff) | |
download | gssdp-ac5e4e5b5854da9b0f4d79d601651d9bfe653d5d.tar.gz |
socket-util: Use g_type_ensure
-rw-r--r-- | libgssdp/gssdp-socket-functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgssdp/gssdp-socket-functions.c b/libgssdp/gssdp-socket-functions.c index 042736f..cf94deb 100644 --- a/libgssdp/gssdp-socket-functions.c +++ b/libgssdp/gssdp-socket-functions.c @@ -162,8 +162,8 @@ gssdp_socket_enable_info (GSocket *socket, #ifdef HAVE_PKTINFO /* Register the type so g_socket_control_message_deserialize() will * find it */ - g_object_unref (g_object_new (GSSDP_TYPE_PKTINFO_MESSAGE, NULL)); - g_object_unref (g_object_new (GSSDP_TYPE_PKTINFO6_MESSAGE, NULL)); + g_type_ensure (GSSDP_TYPE_PKTINFO_MESSAGE); + g_type_ensure (GSSDP_TYPE_PKTINFO6_MESSAGE); if (family == G_SOCKET_FAMILY_IPV6) { return gssdp_socket_option_set (socket, |